Mysql insert to two table
Posted: Thu Feb 03, 2011 8:42 am
Hello. How to edit my script to insert data to two different table?
Here's my query:");
Here's my query:
Code: Select all
$query = mysql_query("SELECT * FROM users WHERE username = '$text'") or die(mysql_error());
if(mysql_num_rows($query)) {
echo "That user already exist!";exit;
}
mysql_query("INSERT INTO users (username, password, points) VALUES ('$text','$pass','$points')