Posted by william.clarke@gmail.com on 11/19/27 11:45
As milahu and Rik said this is PHP looping through a result
set...(maybe not in the VB sense). There isn't a direct equivalent to
the VB6 recordset, but you don't need one.
//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);
Navigation:
[Reply to this message]
|