this is my code:
$result = mysql_query("issue_id, online_date, issue_title, image, first_rant, second_rant from issues where online_date=$current_date"
@extract(mysql_fetch_array($result));
echo $issue_title;
Ok. that code fails, and i get this error:
Notice: Undefined variable: issue_title
Can anyone help me out? it seems like this would work...
Also, here is my connection code if it may help:
<?
// Connecting, selecting database
$link = mysql_connect("localhost", "root"
or die("Could not connect"
echo "Connected to Database successfully.";
mysql_select_db("test"
or die("Could not connect to Database."
?>
$result = mysql_query("issue_id, online_date, issue_title, image, first_rant, second_rant from issues where online_date=$current_date"
@extract(mysql_fetch_array($result));
echo $issue_title;
Ok. that code fails, and i get this error:
Notice: Undefined variable: issue_title
Can anyone help me out? it seems like this would work...
Also, here is my connection code if it may help:
<?
// Connecting, selecting database
$link = mysql_connect("localhost", "root"
or die("Could not connect"
echo "Connected to Database successfully.";
mysql_select_db("test"
or die("Could not connect to Database."
?>