Hello;
i wrote a php code that list all the products in my database table, and i want to divide the results (every 3 products listed in a page), the table contains 5 fields (prodname, specs, price, picname, id
(Auto Increment)). The code below is not working fine on phpdev, there is no error, just logic error.
when i use it to display results, for example i have 5 products in my table. it displays 3 products in the first page (prod5,prod4,prod3) , and page 2, it displays them again. not (prod2, prod1).
i think the problem is in
$row = mysql_fetch_array($result);
i thought of using if statement but didnt manage to get it!
what confuses me, that i uploaded the code in my website, and it worked fine!!! so i need help to make it work on my website and phpdev please