Page 1 of 1

[SOLVED] connection not returning true

Posted: Mon Sep 11, 2006 9:55 am
by Obadiah
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;
?>

Posted: Mon Sep 11, 2006 10:17 am
by Obadiah
fixed it!!

Posted: Mon Sep 11, 2006 3:12 pm
by feyd
We would appreciate that when a thread becomes solved of the problems contained therein the original poster edits their original post to add "[SOLVED]" to the beginning of the thread title.