I Have two files...
The first, a file containing database information
<?php
$mysqlhost = 'localhost';
$mysqlname = 'basename';
$mysqluser = 'uname';
$mysqlpass = '';
$conn = mysql_connect($mysqlhost, $mysqluser, $mysqlpass)
or die ('Cant Conect to MySQL server');
$db = mysql_select_db($mysqlname, $conn)
or die ('Cant Select Database');
?>
and the second, where it tries to create the database tables using the information form the first file.
<?php
include('../other/base.php');
$query = "name varchar(15),";
$query = "post varchar(255),";
$query = "ip varchar(15),";
$sql = "($query)";
$db = mysql_query ($sql)
or die ("cant create tables");
echo ("Done");
?>
All I get from the above is echoing cant create tables 😕
Any ideas?