Page 1 of 1

how do i reset the mysql pointer?

Posted: Sun Dec 05, 2004 6:16 am
by pelegk2
thnaks i nadvance
peleg

Posted: Sun Dec 05, 2004 8:04 am
by kettle_drum

Code: Select all

mysql_data_seek($result_resource, 0);

Posted: Mon Dec 06, 2004 12:59 am
by pelegk2
well i did that
i thought there is anothere way like in array's:)
y the way - isnt there like in asp+sl server that u can tell it to to to the first record?
thnaks in advance
peleg

Posted: Mon Dec 06, 2004 2:59 am
by kettle_drum
Well when using mysql_query() you get returned a resource identifier and not an array. You can use the array functions if you put the data into an array, the code i used on the previous post is how you go to the first result of the resource identifier.