<?php
$conn = @mysql_connect("localhost","root","")
or die(mysql_error());
$db = @mysql_select_db("mop_users",$conn)
or die(mysql_error());
$sql = "INSERT INTO users (id,username,password,email) VALUES ('".$id."', '".$username."', '".md5($password)."' , '".$email."')";
$result = @mysql_query($sql,$conn)
or die(mysql_error());
echo ("<h4>$sql</h4>");
?>
The $sql echo at the end is for testing purposes btw.
Ok, the problem, when it submits, the oasswird md5 hash goes into the databases but all the other fields are blank (except from the id cos that is automatic).
WTF is wrong here???