damn... take a look at this code and tell me whats the error.. i cant find it at least... the dbuser authentication is correct so i cant see why it gives me this error 🙁
Warning: Supplied argument is not a valid MySQL result resource in /hsphere/local/home/wavearti/waveartists.com/index.php on line 76
<?php
$host = "mysql.server.host";
$username = "waveadmin";
$password = "my_password_";
$database = "wave_temp";
mysql_connect($host,$username,$password);
$query = "SELECT newsCaption, newsText, newsTimeStamp, newsTimeInfo, newsAdmin, newsCat FROM news";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
$row['newsCaption']=$caption;
$row['newsText']=$text;
$row['newsTimeStamp']=$timeStamp;
$row['newsTimeInfo']=$timeInfo;
$row['newsAdmin']=$admin;
$row['newsCat']=$category;
print("<table width=80% cellpadding=0 cellspacing=0 border=0>");
print("<tr><td><span class=\"newsHeadText\"".$caption."</span></td></tr>");
print("<tr><td><span class=\"newsSmallText\">".$category." - at ".$TimeInfo." by ".$admin."</span></td></tr>");
print("<tr><td><span class=\"newsRegText\">".$text."</span></td></tr>");
print("</table><br>");
}
?>
see it for yourself at www.waveartists.com
i originally used the