SkullMaster Posted May 17, 2006 Share Posted May 17, 2006 Can anyone tell me if there is a mysql command to search for a row number in a mysql table? im working on a file upload site and displaying the file info. I recently added the admin's delete feature that deletes the row from the mysql table, and now i have missing rows and get errors when i try to display the file info.Warning: mysql_result(): Unable to jump to row 19 on MySQL result index 24 in /home/skullmas/public_html/working/admin2.php on line 99i was just looking for something that would let me see if row 19(for example) was in the table before it tried to get the data that doesnt exist from it.Thanks Quote Link to comment Share on other sites More sharing options...
semtex Posted May 18, 2006 Share Posted May 18, 2006 Why don't you search for the ID of that row? And if it exists, then delete the row? Quote Link to comment Share on other sites More sharing options...
fenway Posted May 18, 2006 Share Posted May 18, 2006 [!--quoteo(post=374717:date=May 17 2006, 12:48 PM:name=SkullMaster)--][div class=\'quotetop\']QUOTE(SkullMaster @ May 17 2006, 12:48 PM) [snapback]374717[/snapback][/div][div class=\'quotemain\'][!--quotec--]Can anyone tell me if there is a mysql command to search for a row number in a mysql table? im working on a file upload site and displaying the file info. I recently added the admin's delete feature that deletes the row from the mysql table, and now i have missing rows and get errors when i try to display the file info.[/quote]How is that even possible? What query are you running that returns deleted rows? Quote Link to comment Share on other sites More sharing options...
SkullMaster Posted May 18, 2006 Author Share Posted May 18, 2006 i got it working. i queried for a row with the id then checked the number of rows returned. 0=doesnt exist and 1=exists :) Quote Link to comment 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.