Posted by Johannes Wienke on 02/04/06 17:27
Am 04.02.2006 16:24 schrieb UKuser:
> 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>
This should be:
<input type="text" name="outcome" value="<?php echo $date['result']; ?>">
> 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]
|