well i tried mysql_num_rows and that still brought me the error message
i then did what yappydog said
$sql = "INSERT INTO custom (username, password, email, lname, fname, city, bgcolor, fontsize, fontface, fontcolor, link, active, visited, hover, linksize, linkface) VALUES ('$username', MD5('$password'), '$email', '$lname', '$fname', '$city', '$bgcolor', '$fontsize', '$fontface', '$fontcolor', '$link', '$active', '$visited', '$hover', '$linksize', '$linkface')";
$query = mysql_query($sql) or die ("could not create record 180");
$result = mysql_affected_rows();
if ($result == 0)
{
echo "unknown error, please try again";
echo " <a href=java script:history.back();>go back</a>";
exit;
}
and this didnt bring any errors up at all
this echoed my next piece of code which was
else {
echo "user account created<br>";
echo "thank you for joining theutherfish.coms customization program<br><br>";
echo "<a href=login.php>login</a>";
}
i then echoed $result to see that the output was and it was 1
so i guess this has worked excellent
thanks very much peeps 😃
Jon 😉