here is my code:
<?php
//connect to the mysql database
$db = mysql_connect("localhost","username","password");
mysql_select_db("webdb", $db);
$sql = "SELECT MainPage.Comic
FROM MainPage
WHERE MainPage.Date=" . $comicDate;
$q = mysql_query($sql);
$result = mysql_fetch_array($q);
$currentComic = $result["Comic"];
?>
Of course, where username and password are, the real values are inserted.
It's frustrating, and any help would be appreciated.
Thanks,
Matt.