hey! 🙂
i have about 300 items in my db.. and i'm just trying to list a certain number at a time, 60 at the moment.. But i want to add a next button to my page so that people can see the next 60 items..
helllp..
this is the code i have so far..
<?
mysql_connect ("localhost", "user" , "pwd") or die ('I cannot connect to the database.');
mysql_select_db ("gwildor_gwildormagic");
$SQL = mysql_query("SELECT * FROM magic_cards LIMIT 0,60");
$tableData = mysql_fetch_array($SQL);
echo "<table border=1>\n";
echo "<tr><td>Qty</td><td>Card Name</td><td>Rarity</td><td>Set</td><td>Card #</td><tr>\n";
do {
echo "<tr><td>\n";
echo("$tableData[Qty]");
echo "</td><td>\n";
echo("$tableData[Card_Name]");
echo "</td><td>\n";
echo("$tableData[Rarity]");
echo "</td><td>\n";
echo("$tableData[Set]");
echo "</td><td>\n";
echo("$tableData[No]");
echo "</td></tr>\n";
} while ($tableData = mysql_fetch_array($SQL));
echo "</table>\n";
thank you thank you thank you.