Beginner: I need code debug (I don't understand the problem)
Posted: Thu Feb 03, 2011 6:42 am
I always get errors in the code at http://pastebin.com/4DyhFSmB
The following errors are:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 11 on MySQL result index 4 in C:\xampp\htdocs\MySQL_Site\product_page.php on line 64
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 11 on MySQL result index 4 in C:\xampp\htdocs\MySQL_Site\product_page.php on line 65
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 11 on MySQL result index 4 in C:\xampp\htdocs\MySQL_Site\product_page.php on line 66
Notice: Undefined variable: first in C:\xampp\htdocs\MySQL_Site\product_page.php on line 68
Notice: Undefined variable: last in C:\xampp\htdocs\MySQL_Site\product_page.php on line 68
What is the damn problem?
P.S.: I want PHP to output vars name, price, avail and many others to a line at 'echo' part using id (.../ppage.php?id=11 for ex.)
P.P.S.: I don't really care about errors with first and last vars
The following errors are:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 11 on MySQL result index 4 in C:\xampp\htdocs\MySQL_Site\product_page.php on line 64
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 11 on MySQL result index 4 in C:\xampp\htdocs\MySQL_Site\product_page.php on line 65
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 11 on MySQL result index 4 in C:\xampp\htdocs\MySQL_Site\product_page.php on line 66
Notice: Undefined variable: first in C:\xampp\htdocs\MySQL_Site\product_page.php on line 68
Notice: Undefined variable: last in C:\xampp\htdocs\MySQL_Site\product_page.php on line 68
What is the damn problem?
P.S.: I want PHP to output vars name, price, avail and many others to a line at 'echo' part using id (.../ppage.php?id=11 for ex.)
P.P.S.: I don't really care about errors with first and last vars