Why can not execute the command
$STH = $DBH->prepare("CREATE TABLE table1(ID int not null auto_increment primary key)"); $STH->execute(); A function
$DBH->exec("CREATE TABLE table1(ID int not null auto_increment primary key)"); performed without any problems.
Can you explain why?)
PS $ DBH = new PDO ("mysql: host = $ host; dbname = $ db_name", $ user, $ pass);
$DBH->prepare("CREATE ...- E_pechodisplays it) - Samveltry {} catch (PDOException $e) ...without it. - Samvel