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? Quote 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... Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.