hi,
This is a sample of the code of my php file:
$create_table = "CREATE TABLE dis ( ".
"cod int NOT NULL, ".
"name text NOT NULL )";
$res = pg_exec( $bd, $create_table );
I would like to know if the table already exist so i do this:
if ( !bd ) {
echo "table already exist";
delete table bla bla bla
}
but how can i prevent the following warning from appearing, if the table already exists ?!
" Warning: PostgreSQL query failed: ERROR: Relation 'dis' already exists in /home/mill/public_html/trab1/ult/algor.php on line 122"
Thank you