[code=php]<?
$conn = mysql_connect(“xxxxx”,”xxxxx”,”xxxxx”);
$db = mysql_select_db(“xxxxxx”);
$query = ‘SELECT * FROM `news` ORDER BY `date` DESC;’;
$results = mysql_query($query);
$rows = mysql_fetch_array($results);
while ($rows = mysql_fetch_array($results)) {
echo $rows[‘date’]; print”<br>”;
echo $rows[‘message’];print”<br><br>”;} ?>
That script prints the first two entries in the database but not the third anyone have an idea why?
Its the script to load the news column on the site below and it does print the first two.
[url]http://dbzwars.freelinuxhost.com/
id date message
1 2004-09-23 Site Development Has Begun!
2 2004-09-24 Hopefully setting up the database, login scripts, …
3 2004-09-25 I have found a new host and have set up there. I f…
thats whats in the database