im using this php code to concat two querys:
$qry = "Create Table $this->tablename (".
"id_user BIGINT NOT NULL AUTO_INCREMENT ,".
"name VARCHAR( 128 ) NOT NULL ,".
"lastname VARCHAR( 128 ) NOT NULL ,".
"email VARCHAR( 128 ) NOT NULL ,".
"password VARCHAR( 32 ) NOT NULL ,".
"confirmcode VARCHAR(32) ,".
"ident_number VARCHAR( 128 ) NOT NULL ,".
"professional_area VARCHAR( 128 ) NOT NULL ,".
"last_update_cv DATETIME NOT NULL ,".
"last_login DATETIME NOT NULL ,".
"PRIMARY KEY ( id_user )".
");";
$qry = $qry . "CREATE TABLE ". table_cv .
" (id_cv BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
id_user BIGINT NOT NULL,
phone_number VARCHAR(35) NOT NULL,
profile_text VARCHAR(500) NOT NULL);";
Any time i send the query i get a syntax error.
What is the correct way to do two queries in single execution?