I am trying to create a script to display my MYSQL db info and I keep getting these errors:
Notice: Table 'head1sta_news.news' doesn't exist in /home/head1sta/public_html/index.php on line 103
And:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/head1sta/public_html/index.php on line 104
It has varied as I have tweaked the code here and there trying to figure out what I am messing up on. This is the script:
<?
mysql_connect("localhost", "****_news", "****");
mysql_select_db("****_news");
$query = "SELECT * FROM news ORDER BY id DESC";
$result = mysql_query($query) or trigger_error(mysql_error());
while($data = mysql_fetch_row($result)){
echo("$data[1] , $data[0] , $data[3]");
}
?>