note 21513 rejected from ref.pgsql by torben
| From: | torben@php.net | Date: | Wed, 15 May 2002 19:07:50 +0000 |
| Subject: | note 21513 rejected from ref.pgsql by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30681@lists.php.net to get a copy of this message | ||
Having problems adding a php variable into a postgreSQL array. The table has several attributes
including one array attribute. It is to this attribute that we wish to add an element. We have tried
$query = "INSERT INTO state (game, turn, players) values('$newgamename', 0,
'{$incnum}";
pg_exec($db,$query);
Players is of type array.
We think the problem is with incorrect syntax of '{$incnnum}'