$result = mysql_query("INSERT INTO `users` (`username`, `password`, `name`, `lastname`) VALUES ('" . mysql_real_escape_string ( $_POST['username'] ) . "', '" . mysql_real_escape_string ( $_POST['password'] ) . "', '" . mysql_real_escape_string ( $_POST['name'] ) . "', '" . mysql_real_escape_string ( $_POST['lastname'] ) . "')");
echo $ŗesult;
как пароль в md5 вписать?
$result = mysql_query("INSERT INTO `users` (`username`, `password`, `name`, `lastname`) VALUES ('".( $_POST['username'] )."', '".md5( $_POST['password'] ). "', '".( $_POST['name'] )."', '".( $_POST['lastname'] )."')");
так... я тут наверно сам сабой...
Changed: xass (16.11.2009 / 15:50)