Jump to content

Table Problems


odetron

Recommended Posts

So im getting an error saying one of my tables doesn't exist. So I re-run my table makeing script and its not working

<?php
$dbhost = 'xxxxxxx';
$dbuser = 'xxxxx';
$dbpass = 'xxxxxxxx';

$con = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');

$dbname = 'xxxxxxxxx';


mysql_select_db($dbname, $con);
$sql="CREATE TABLE news
(
Name VARCHAR(15),
Subject VARCHAR(15),
Message VARCHAR(1000),
Date VARCHAR(10),
ID int,
)";
mysql_query($sql,$con);
?>

whats wrong?

Link to comment
https://forums.phpfreaks.com/topic/58481-table-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.