I want to set back the internal result pointer from a mysql_query by one. I looked at the code behind mysql_data_seek and it seems that when you do a select in a mysql_query it returns a linked list of some sort. when you call mysql_data_seek it traverses the linked list x times where x is the specified offset. Does anyone know how this is set up. I just want to move the pointer backwards one.
The code i tried was
$result = mysql_query('SELECT * ...');
mysql_fetch_row($result);
$result->data_cursor = $result_array->data->data->prev;
$result_array->current_row = 0;
This doesnt work but, this is similar to how mysql_data_seek works.
The code i tried was
$result = mysql_query('SELECT * ...');
mysql_fetch_row($result);
$result->data_cursor = $result_array->data->data->prev;
$result_array->current_row = 0;
This doesnt work but, this is similar to how mysql_data_seek works.