Posted by william.clarke@gmail.com on 11/19/95 11:45
Obviously that should have been:
//executes the query
$res = mysql_query('select * from foo') or die(mysql_error());
//loops until the end of the result set.
while ($row = mysql_fetch_assoc($res))
//Your tempvar thingy could go in here...
$tempvar = $tempvar . " / " . $row['colname'];
//releases the result set reference.
mysql_free_result($res);
[Back to original message]
|