ciao a tutti! dopo aver lungamente sofferto per imparare mysql, ecco che mi tocca usare per lavoro postgresql..
qualcuno mi sa dire perchè questa query:
mi dà l'errore:Codice PHP:
$query = "CREATE TABLE admin (id integer(5) NOT NULL,user varchar(40) NOT NULL,pass varchar(40) NOT NULL,mail varchar(50),PRIMARY KEY(id))";
if ($res=pg_Exec($query)) {
echo ("Ok, tabella admin creata
");
}
else {
echo ("Errore creazione tabella");
}
Warning: pg_exec(): Query failed: ERROR: syntax error at or near "(" at character 31 in /home/http/quadcham/public_html/install.php on line 6
Errore creazione tabella
Warning: pg_exec(): Query failed: ERROR: syntax error at or near "(" at character 31 in /home/http/quadcham/public_html/install.php on line 15
Errore inserimento
attendo vostri lumi! con ansia!