Hi all,
Very simple script. Takes two variables, user and pass which are input into a form and must be inserted into the 'players' table. The script is as follows:
<?
if (!$user || !$pass)
{
echo "You have not filled out all the fields. Please hit back on your browser.<br>";
exit;
}
$user = addslashes($user);
$pass = addslashes($pass);
$db = mysql_connect("localhost", "djoseph", "paradise"
if (!$db)
{
echo "Houston, we have a problem...";
exit;
}
mysql_select_db("iedge"
$query = "insert into players values ('".$user."', '".$pass."')";
$result = mysql_query($query)
?>
*******************************************************
The script doesnt work. Doesnt seem to be a connection issue because the error doesnt come up. The script seems to execute, with the browser blank and directed to the right PHP script.
Any tips/suggestions anyone?
Thanks All
Very simple script. Takes two variables, user and pass which are input into a form and must be inserted into the 'players' table. The script is as follows:
<?
if (!$user || !$pass)
{
echo "You have not filled out all the fields. Please hit back on your browser.<br>";
exit;
}
$user = addslashes($user);
$pass = addslashes($pass);
$db = mysql_connect("localhost", "djoseph", "paradise"
if (!$db)
{
echo "Houston, we have a problem...";
exit;
}
mysql_select_db("iedge"
$query = "insert into players values ('".$user."', '".$pass."')";
$result = mysql_query($query)
?>
*******************************************************
The script doesnt work. Doesnt seem to be a connection issue because the error doesnt come up. The script seems to execute, with the browser blank and directed to the right PHP script.
Any tips/suggestions anyone?
Thanks All