create table with php -whats wrong?
| From: | Saulius Jankauskas | Date: | Sun, 28 Oct 2001 22:57:30 +0000 |
| Subject: | create table with php -whats wrong? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13786@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