brewfan9 Posted May 4, 2008 Share Posted May 4, 2008 Why won't the data pointer move? This code creates an infinite loop. If I limit the loop iterations to 3 and echo the result I continue to access one(1) row. <php while ($del_row_id=mysql_fetch_array(mysql_query("select * from datatable")) ) { > while ($del_row_id=mysql_fetch_array(mysql_query("select * from datatable")) ) { What's my deal? Link to comment https://forums.phpfreaks.com/topic/104036-mysql_fetch_array-internal-data-pointer/ Share on other sites More sharing options...
Daniel0 Posted May 4, 2008 Share Posted May 4, 2008 You're running the query at each iteration... Link to comment https://forums.phpfreaks.com/topic/104036-mysql_fetch_array-internal-data-pointer/#findComment-532572 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.