Jump to content

Problems accessing mysql_fetch_object vs mysql_fetch_array


dmort

Recommended Posts

I can use my variable in fetch_array ... echo $row['line1'] good.

 

I am unable to use fetch_object with :

$data = mysql_fetch_object($result);

while(list($var, $value) = each($data))

$$var = $value;

... echo $value['line1'].

 

I can't get the values out of the object to be useable. Anyone know why ?  Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.