What does this error mean?
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/m/i/d/mideasthonors/html/student_session_proposal_success.php on line 109
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
This is the code, but I am not seeing what they are talking about
:
-
<?
-
include("admin-dbcon.php");
-
$ID=$_GET['sessionproposalID'];
-
$sessionsql=mysql_query("SELECT primary_contact, primary_email, primary_institution, presenter_2, presenter_2 email, presenter_2 institution,
-
presenter_3, presenter_3 email, presenter_3 institution, presenter_4, presenter_4 email, presenter_4 institution, abstract_title, abstract_description,
-
session_length, session_category, av_equipment, MONTHNAME(dtAdded) as month, YEAR(dtAdded) as year, DAYOFMONTH(dtAdded) as day FROM student_session_proposals WHERE ID=$ID");
-
$row=mysql_fetch_array($sessionsql) or die(mysql_error());
-
echo "<b>Thank You!</b><br/>";
-
echo "Your prpopsal has been received. Below is your confirmation information.</p>";
-
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" border=\"0\">";
-
echo "<tr>";
-
echo "<td valign=\"top\"><p><b>";
-
echo $row["primary_contact"];
-
echo " ";
-
echo $row["primary_email"];
-
echo " ";
-
echo $row["primary_institution"];
-
echo " ";
-
echo $row["presenter_2"];
-
echo " ";
-
echo $row["presenter_2 email"];
-
echo " ";
-
echo $row["presenter_2 institution"];
-
echo " ";
-
echo $row["presenter_3"];
-
echo " ";
-
echo $row["presenter_3 email"];
-
echo " ";
-
echo $row["presenter_3 institution"];
-
echo " ";
-
echo $row["presenter_4"];
-
echo " ";
-
echo $row["presenter_4 institution"];
-
echo " ";
-
echo $row["abstract_title"];
-
echo " ";
-
echo $row["abstract_description"];
-
echo " ";
-
echo $row["session_length"];
-
echo " ";
-
echo $row["session_category"];
-
echo " ";
-
echo $row["av_equipment"];
-
echo " ";
-
echo "</b>";
-
echo "<br/>";
-
-
mysql_free_result($sessionsql);
-
ob_end_flush();
-
?>
-