I'm looking to limit the amount of results on a page to 20, but at the bottom of the page would be 1,2,3,4 etc. How would I do this? I've got this so far but don't know where to go from here: Code:
$conn = mysql_connect($dbhost, $dbuser, $dbpass, $database);
if(! $conn )
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db('evocityi_stocks');
$query = "SELECT * FROM FUMUKU"; //
$result = mysql_query($query);
echo "<table>
<tr>
<th>Stock Name</th>
<th>Stock Price</th>
<th>Time</th>
</tr>";
while($row = mysql_fetch_array($result)){
echo "<tr><td>" . $row['Stock'] . "</td><td>" . $row['Price'] . "<td>" . $row['TimeD'] . "</td></tr>";
}
echo "</table>"; //Close the table in HTML
mysql_close();
?>