Hey everyone. I have a simple form with three fields, when the user
submits, I want the php to echo under the form the results in my sql
table that match the three fields in the form. I'm tried to use
variables similar to:
$typeinform="do cument.myform.m ytype.value";
$typeinals="doc ument.myform.my als.value";
$typeinfdoi="do cument.myform.m yfdoi.value";
$myQuantity = mysql_query("SE LECT * FROM totals WHERE type =
'$typeinform'
AND als = '$typeinals'
AND fdoi = '$typeinfdoi'
I'm basically trying to figure out how to get the php to echo that
result in my page after the user submits. I've tried this...
<<<FORM>>>>
<?php
echo $myQuantity;
?>
It doesn't return anything though, any ideas?
submits, I want the php to echo under the form the results in my sql
table that match the three fields in the form. I'm tried to use
variables similar to:
$typeinform="do cument.myform.m ytype.value";
$typeinals="doc ument.myform.my als.value";
$typeinfdoi="do cument.myform.m yfdoi.value";
$myQuantity = mysql_query("SE LECT * FROM totals WHERE type =
'$typeinform'
AND als = '$typeinals'
AND fdoi = '$typeinfdoi'
I'm basically trying to figure out how to get the php to echo that
result in my page after the user submits. I've tried this...
<<<FORM>>>>
<?php
echo $myQuantity;
?>
It doesn't return anything though, any ideas?
Comment