I'll take a shot at this... The code, over all looks alright, I just put a few touch-ups to it to see what it might help...
<?php
if(!isset($_GET['add']))
{
?>
<html>
<head>
<title>Dina Art: Add a New Artistt</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="POST" action="admin_add_artist.php">
<input type="hidden" name="add" value="1">
<p>Artist First Name:
<input type="text" name="artistname">
<br>
Artist Last Name:
<input type="text" name="artistlastname">
</p>
<p>Artist Bio:<br>
<textarea name="artistbio" cols="50" rows="5"></textarea>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
<?php
}
else {
##################################################
#######
# DINA ART ADMIN MODULE: Database CFG Files #
##################################################
#######
require("../../includes/configs/config.cfg");
require("../../includes/configs/select_db.cfg");
$artist_add = "INSERT INTO artist ('ID', 'artistname', 'artistbio', 'artistlastname') VALUES (' ', '$firstname', '$bio', '$lastname')";
$artist_add_action = mysql_query($artist_add);
/// If $result == 0?
if($artist_add_action==0)
{
print ("there has been a problem with recording your information");
}
else
{
print ("Your information has been recorded");
}
}
?>
Well, when I was going through your code this is what I found:
When you are performing the query:
$artist_add_action = mysql_query($artist_add);
you then cehck in your if statement if $result == 0... I changed this to if($artist_add_action == 0)... maybe that will help a bit?