Thanks for your input, i m taking this out of a book, with some alterations.
I should have mentioned these variables are from a form, with user and pass being the two fields.
<?
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");
"insert into players values ('".$user."', '".$pass."')";
?>
The insert statment is to insert those values into the players table. Is that what I would use? Thanks again for your time.