<?php
$user="root";
$password="panda";
$db="tony";
$con=mysql_connect(localhost, $user, $password) or die (mysql_error());
if (!con)
{
die ('could not connect: ' .mysql_error());
}
mysql_select_db($db, $con) or die (mysql_error());
$sql="CREATE TABLE cms_access_levels
(
access_level tinyint (4) NOT NULL auto_increment,
access_name varchar(50) NOT NULL default '',
PRIMARY KEY (access_level)
)";
$results=mysql_query($sql, $con);
echo $results;
?>
Whenever I run the code in localhost nothing appears at all!
$user="root";
$password="panda";
$db="tony";
$con=mysql_connect(localhost, $user, $password) or die (mysql_error());
if (!con)
{
die ('could not connect: ' .mysql_error());
}
mysql_select_db($db, $con) or die (mysql_error());
$sql="CREATE TABLE cms_access_levels
(
access_level tinyint (4) NOT NULL auto_increment,
access_name varchar(50) NOT NULL default '',
PRIMARY KEY (access_level)
)";
$results=mysql_query($sql, $con);
echo $results;
?>
Whenever I run the code in localhost nothing appears at all!