When I try to perform my database query with
Code: Select all
<?php
$result = mysql_query("SELECT * FROM myTable", $connection);
if(!$result){
die("Database query really failed: " . mysql_error());
}
?>I've tried this with several tables in the database and run into the same error (actually had mysql_query(): 6 error as well).
Can someone point me in the right direction to fix this?
Is there a php command I can add to to show the contents of my database so I can see what the page is seeing?
Note - I checked my query structure inside of PHPMyAdmin and that seemed to be right.
Thanks for any help.