Here is my code:
$dbcnx = @mysql_pconnect($host,$username,$password);
mysql_select_db("News",$dbcnx);
$result = mysql_query( "SELECT NewsText FROM news");
if (!$result)
{
echo("<P>Error performing query: " . mysql_error() . "</P>");
exit(); }
// Display the text of news
while ( $row = mysql_fetch_array($result) )
{
echo("<P>" . $row["NewsText"] . "</P>");
}
mysql_close ($dbcnx);
?>
Here is my problem:
Everytime the page that this code is on loads, in the area where the output is displayed I also get a successfully connected to database message. Is there something I can do to fix this, or is it something that the server admin has to do?
you can see my problem at this link http://www.sweetdaddy.biz/test-page.php3