note 47011 added to function.pg-query

From: Date: Sat, 30 Oct 2004 14:27:22 +0000
Subject: note 47011 added to function.pg-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-79360@lists.php.net to get a copy of this message
Help me, please. I must create table/ I do this with next code: $query = "CREATE TABLE test( ip text, name integer, date timestamp (1) without time zone DEFAULT CURRENT_DATE, comment text ); "; $result = pg_query($connection, $query); But always I have the next warning on my html page: Warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "test" already exists in /home/rolechka/public_html/test.php on line 166 With what functions I can catch this warning? pg_last_notice() don't help me :( ---- Manual Page -- http://www.php.net/manual/en/function.pg-query.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47011 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47011&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47011&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47011&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47011&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47011&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47011&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47011&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79360) next »