NoNamesLeft
Technical User
How can I tell this query to only pull out the first 6 records?
And then how do I tell it to pull out records 6 to 12 etc?
Help much appreciated.
<?
include "../../variables.php";
$query = "SELECT * FROM tblNews";
$result = mysql_db_query ($dbname, $query);
while ($row = mysql_fetch_array ($result))
{
$title = $row["Title"];
$news = $row["News"];
$date = $row["Date"];
$sitelink = $row["SiteLink"];
print ("$title - $date<br>"
print ("$news<br>"
print ("<a href=}
?>
And then how do I tell it to pull out records 6 to 12 etc?
Help much appreciated.
<?
include "../../variables.php";
$query = "SELECT * FROM tblNews";
$result = mysql_db_query ($dbname, $query);
while ($row = mysql_fetch_array ($result))
{
$title = $row["Title"];
$news = $row["News"];
$date = $row["Date"];
$sitelink = $row["SiteLink"];
print ("$title - $date<br>"
print ("$news<br>"
print ("<a href=}
?>