Hello,
I am using a page where a variable $submissionid
is being posted to it. I would like to use this variable and pull the field subcheck
from a MySQL table called submission
. I would like the value of the field subcheck
to simply be a new variable $subcheck
. I'm not sure how to do this. I have a query below, but how to I convert the result of the query below into a variable called $subcheck
? (For any given submissionid, there will only be one $subcheck
.)
Thanks in advance,
John
$querysub = mysql_query("SELECT subcheck FROM submission WHERE submissionid = '$submissionid' ");
mysql_query($querysub) or die(mysql_error());