What is wrong with this php script?

manadude2

New member
$sql="SELECT *
FROM `nextdateopen`";

if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo $sql['date'];

What this script produces on the page (http://www.bamfordyc.com) is the letter "S" next to where it says "Next open:". It is meant to display the test string "12345". Why does it show "S"?
 
Back
Top