benphp Posted February 8, 2010 Share Posted February 8, 2010 I have a table called states with 51 states in it. When I run this query, I get an infinite loop. <?php $dbConn = fnOpenDbConn(); $sql = "SELECT sName, ID FROM states WHERE sName = 'California' "; $rS = $dbConn->execute($sql); $c0 = $rS->Fields(0); while (!$rS->EOF) { $sName = $c0->value; print "$sName<br />"; } ?> There is only one record that matches this query. I use the EXACT syntax for other pages with no problem. Anyone see something I can't? I'm blind. Link to comment https://forums.phpfreaks.com/topic/191389-why-is-this-loop-infinite-ms-access-trouble/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.