ok I need to create MySQL table. So i'm running this script but it's just not working. Any idea why? Thank you.
<?php
$con = mysql_connect("database.dcs.aber.ac.uk","xxx","nnnnnnnnnn");
mysql_select_db("jaz",$con);
$sql = "CREATE TABLE storys
(
id int NOT NULL AUTO_INCREMET,
title TINYTEXT,
type TINYTEXT,
link TEXT,
preview TINYTEXT,
tags TINYTEXT,
text MEDIUMTEXT,
updated TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP,
created DATETIME() DEFAULT NULL,
PRIMARY KEY(id)
)";
mysql_query($sql,$con);
mysql_close($con);
?>
echo mysql_error();
below the linemysql_query($sql, $con);
and then tel me if it outputs anything, this line usually tells you what error is occuring and most likely the reason for your problem – Lenny Feb 22 '12 at 15:57updated TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP, created DATETIME() DEFAULT NULL,
ment to do? are you wanting a date field? – Lenny Feb 22 '12 at 16:05