<?php
CREATE TABLE test (id_col, INT, NOT NULL, AUTO_INCREMENT, PRIMARY KEY,
col1 TEXT NULL INDEX,
col2 DATE NOT NULL
);
mysql_connect(localhost,dbe2k2,DBGTZZ);
mysql_select_db('test');
$query="INSERT INTO test(ID,'col1','col2') VALUES(NULL, 'Hey', 'Andy')";
$result=mysql_query($query);
print $result;
?>
I'm just testing this MySQL thing, but it always says CREATE TABLE test (id_col, INT, NOT NULL, AUTO_INCREMENT, PRIMARY KEY,
is wrong, can someone help me please.
ID:274853
Aug 18 2002, 9:25 pm
|
|
The BYOND forum isn't the place to ask PHP related questions, there are more suitable places to look, such as http://www.php.net
|
http://www.phphelp.com/