Posted by UKuser on 02/04/06 17:24
My code now reads:
$query = "SELECT result FROM fig_lookup WHERE $price BETWEEN lowerval
AND upperval";
check_mysql();
$result = mysql_query($query);
$date=mysql_fetch_array($result);
?>
<input type="text" name="price">
<input type="submit" value="hit me">
<input type="text" name="outcome" <?php echo
"VALUE=\"$date['result']\"" ?>>
</form>
And I get the error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/www/nana46.coconia.net/test2.php on line 37
Which is the line of "date['result']"
[Back to original message]
|