The result i am getting is "didnt" (look code below)
i was wondering where the problem could be. it connects fine with the database but the mysql_query call is not working.
// Connecting to Database
$dbhost = 'localhost';
$dbuser = '****';
$dbpass = '****';
$conn = mysql_connect($dbhost, $dbuser, $dbpass)
mysql_select_db('MemberUser');
if($conn){
echo 'connected';
}
else{
die ('Error connecting to mysql');
}
$result = mysql_query("INSERT INTO users (fullname, email, password) VALUES ('$name', '$email', '$password')");
if ($result) {
echo 'worked';
} elseif(!$result) {
echo 'didnt';
} else {
echo '$_REQUEST is empty';
}
thanks for looking
This post has been edited by Dormilich: 09 June 2011 - 11:40 PM

New Topic/Question
Reply




MultiQuote






|