Skip to content Skip to sidebar Skip to footer

Creation Table With Php

i have a problem with the 'create table' in PHP. The name of table is the name of the user registered. The problem is in '$nuovidati'. The registration script work but doesn't crea

Solution 1:

Seems to me like a SQL error, try this:

"CREATE TABLE $user
(
   id mediumint(9) NOT NULL AUTO_INCREMENT,
   descrizione varchar(100) NULL DEFAULT NULL,
   data date NOT NULL,
   entrata varchar(10000) NOT NULL,
   uscita varchar(10000) NULL DEFAULT NULL,
   saldo varchar(100) NULL DEFAULT NULL,
   PRIMARY KEY (id)
)";

Post a Comment for "Creation Table With Php"