[SOLVED] connection not returning true
Posted: Mon Sep 11, 2006 9:55 am
ahaa...i knew i wasent crazy....somtthing is not right here....in this code the value that is suposed to return should be true but it doesnt...it seems as it returns false...why?
Code: Select all
<?php
// open the connection
$conn = mysql_connect("dfhdfhgdfg", "dfsdfgsdf", "dfhgdfhdfhdfhg");
// database in use
mysql_select_db("testDB",$conn);
// create the SQL statement
$sql = "CREATE TABLE testTABLE(id int not null primary key auto_increment,
testField varchar(75))";
//execute the SQL statement
$result = mysql_query($sql, $conn);
// echo the result identifier
echo $result;
?>