Hello,
I made this code so that the page retrives the news from the database and echos it.
Here's the code:
<?php
$db_name = "novazro";
$connect = mysql_connect('localhost','user removed','password removed');
$db = mysql_select_db($db_name,$connect);
?>
<head><title>News & Updates</title></head>
<body>
<center>
<?php
echo "<h3>News & Updates</h3>";
$retrieve_news = mysql_query("SELECT updates FROM news ORDER BY date DESC", $connect);
$news_and_updates = mysql_fetch_row("$retrieve_news");
echo "$news_and_updates";
?>
</center>
</body>
I keep on getting this error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/home/novazro/public_html/admin/news.php on line 13
can you guys help me out?
thanx a lot ;-)