note 2754 deleted from pg_Exec by ronabop
| From: | ronabop@php.net | Date: | Thu, 17 Aug 2000 08:54:37 +0000 |
| Subject: | note 2754 deleted from pg_Exec by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2058@lists.php.net to get a copy of this message | ||
hi all, can anyone explain this?
I have a db:
blaskovics=> select * from volvo_ar where modell='S70';
modell|utotag |urtart| kw| le| ar
------+---------+------+---+---+-------
S70 |2.4 140HP| 2435|103|140|8631000
S70 |2.4 170HP| 2435|125|170|8989000
S70 |2.5 D | 2461|103|140|9359000
(3 rows)
and I have a code:
$mod='S70'; $volvo_ar = pg_Exec ($conn, "SELECT * FROM volvo_ar WHERE modell = $mod
");
and this code results:
Warning: PostgresSQL query failed: ERROR: attribute 's70' not found in
/home/httpd/html/blaskovics/var1.php3 on line 66
Does someone know why changes the content of $mod into lower-case?