Hi All,
This is my first post so please forive any stupid mistakes.
Im running PHP 5 with MySQL Server 5.0 and Apache 2.0.5
I have configured apache to work fine with PHP, but when i try to do a simple things like create a table through a php page it dosent work, im using the following code:
<?
$user="xxxxx";
$password="xxxxxxx";
$database="test";
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="CREATE TABLE contacts (id int(6) NOT NULL auto_increment,first varchar(15) NOT NULL,last varchar(15))";
mysql_close();
?>
The page just comes up blank, no errors, nothing. When i go back to MySQL and check the database its still the same, just an empty set.
Ive tried using the "sticky" tutorial for setting up PHP to work with MySQL and followed it to the letter.
Anyone any ideas????