I am looking for a way to write 2 MySQL queries into 1 PHP variable since I am looking to insert into 2 different tables.
I am building a simple registry page where the name is in table "users" and email and password is in table "auth".
Tables as follows:
so I thought something like this:
$sql = "INSERT INTO users VALUES('', '$name','','') INSERT INTO auth VALUES('', '', '$email', $password', '')";
since I am using
$result = mysql_query($sql);
I would need to have the query in one variable ($sql) as far as I understand.
Thanks.