Hello, I am a newbie with PHP and this is just my 2nd little script. Hope someone can help. I get no results to appear when this page loads. If I access my db through phpmyadmin and run the same query, I get the correct results. Any ideas? Thanks in advance<?php
$connect= mysql_connect("localhost","sungate_imcleod","bigjake" or die("Could not connect"
$db =mysql_select_db("sungate_news",$connect) or die("Could not select database"
$query="SELECT ID,Title FROM newsitem ORDER BY ID DESC";
$result=mysql_query($query,$connect);
while($r=mysql_fetch_array($result));
{
$ID=$r["ID"];
$Title=$r["Title"];
echo"$ID $Title";
}
?>
$connect= mysql_connect("localhost","sungate_imcleod","bigjake" or die("Could not connect"
$db =mysql_select_db("sungate_news",$connect) or die("Could not select database"
$query="SELECT ID,Title FROM newsitem ORDER BY ID DESC";
$result=mysql_query($query,$connect);
while($r=mysql_fetch_array($result));
{
$ID=$r["ID"];
$Title=$r["Title"];
echo"$ID $Title";
}
?>