note 21513 added to ref.pgsql

From: Date: Wed, 15 May 2002 16:02:27 +0000
Subject: note 21513 added to ref.pgsql
Groups: php.notes 
Request: Send a blank email to php-notes+get-30677@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}' -- http://www.php.net/manual/en/ref.pgsql.php http://master.php.net/manage/user-notes.php?action=edit+21513 http://master.php.net/manage/user-notes.php?action=delete+21513 http://master.php.net/manage/user-notes.php?action=reject+21513

« previous php.notes (#30677) next »