Jump to content

mysql_fetch_array -- Internal data pointer


brewfan9

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.