need help
Posted: Fri Nov 07, 2008 4:01 am
hi all,
i need help for php code.
first i read the table from the mysql and i print the array
the array is like this:
Array
(
[0] => Array
(
[contact_ID] => 00000000000000000001
[client_ID] => 00000000000000000002
[personIncharge] => sadfsadf
[designation] => asdfasdfasdfasd
[department] => asdfasdfasd
[mainLine] => asdfsadf
[faxLine] => asdfasdf
[directLine] => asdfsadf
[mobile] =>
)
[1] => Array
(
[contact_ID] => 00000000000000000002
[client_ID] => 00000000000000000002
[personIncharge] => sadfasdf
[designation] => fasdfasdf
[department] => sadfasd
[mainLine] => asdfasdf
[faxLine] => asdfasdfads
[directLine] => asdfasdf
[mobile] => fasdfsadfdsaf
)
)
this is the code that i've done:
if(isset($_REQUEST["Submit"]) == true){
$contactList = "SELECT * FROM contact WHERE client_ID = ('".$_REQUEST["client_ID"]."')";
$db->sql_query($contactList);
$list = $db->sql_fetchrowset();
print_r($list);
}
is it possible for me to print array on $list in html?
how can i code it?
Thanks
i need help for php code.
first i read the table from the mysql and i print the array
the array is like this:
Array
(
[0] => Array
(
[contact_ID] => 00000000000000000001
[client_ID] => 00000000000000000002
[personIncharge] => sadfsadf
[designation] => asdfasdfasdfasd
[department] => asdfasdfasd
[mainLine] => asdfsadf
[faxLine] => asdfasdf
[directLine] => asdfsadf
[mobile] =>
)
[1] => Array
(
[contact_ID] => 00000000000000000002
[client_ID] => 00000000000000000002
[personIncharge] => sadfasdf
[designation] => fasdfasdf
[department] => sadfasd
[mainLine] => asdfasdf
[faxLine] => asdfasdfads
[directLine] => asdfasdf
[mobile] => fasdfsadfdsaf
)
)
this is the code that i've done:
if(isset($_REQUEST["Submit"]) == true){
$contactList = "SELECT * FROM contact WHERE client_ID = ('".$_REQUEST["client_ID"]."')";
$db->sql_query($contactList);
$list = $db->sql_fetchrowset();
print_r($list);
}
is it possible for me to print array on $list in html?
how can i code it?
Thanks