2007-11-26 19:44:50 UTC
Here is the code I am using for other columns such as "name":
$rdata = mysql_query("SELECT * FROM $infotable")
or die(mysql_error());
$info = mysql_fetch_array( $rdata );
$name1 = $info['name'];
-- If I echo $name1, it returns as 'John Doe'...
Heres my code for extracting the value in column reqtable1:
$rdata = mysql_query("SELECT reqtable1 FROM $infotable")
or die(mysql_error());
$info = mysql_fetch_array( $rdata );
--- "print_r($info);" here returns "Array ( [0] => [reqtable1] => )"
If I use SELECT * FROM instead of SELECT reqtable1 FROM, I still cannot retrieve the column value...
Here is my SQL table as shown in PHPMyAdmin:
name____John Doe___NULL
email____J@d.com___NULL
phone____555-555___NULL
pref______2________ NULL
scanner___Pro-96____NULL
city______Testville____NULL
state_____Hawaii____ NULL
reqtable1__NULL____ request211961249
Any advice helps, thank you!!!!