|
Posted by Michael Fesser on 01/28/07 17:26
..oO(Jeff)
>This php (version 5.20) code:
>$sql = "insert into Picture(Property, Mime, Data) values (1 , $type,
>\"".$image."\")";
>
>Generate this sql (MySql5) error:
>Unknown column 'image' in 'field list'
$sql = "
INSERT INTO Picture (Property, Mime, Data)
VALUES (1, '$type', '$image')";
Watch the quoting when inserting strings.
Micha
Navigation:
[Reply to this message]
|