Re: create table with php -whats wrong?

From: Date: Sun, 28 Oct 2001 22:28:22 +0000
Subject: Re: create table with php -whats wrong?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13787@lists.php.net to get a copy of this message
> Hello all. > > I am trying to create simple test table with php, but I get: > > Parse error: parse error in /home/vanesaw/public_html/create.php on line 5 > > Line 5 is command to create table (see code below). > > Whats wrong with it? Thanks. > ------------ > <? > $sql = mysql_connect("host", "login", "pass"); > mysql_select_db("dbname"); > > CREATE TABLE test (id TINYINT not null AUTO_INCREMENT, process LONGTEXT not > null , title LONGTEXT not null , description LONGTEXT not null , PRIMARY KEY > (id)); > > ?> > done Saulius, http://www.php.net/manual/en/function.mysql-query.php =dn

« previous php.db (#13787) next »