Ok now, i basically have it,
PHP Code:
<?
if (!$title || !$about || !$title || !$price)
{
echo "You have not completed all of the required feilds in your article report.<br>"
."please go back and try again.";
exit;
}
$title = addslashes($title);
$about = addslashes($about);
$screenshots = addslashes($screenshots);
$source = addslashes($source);
@ $db = mysql_pconnect("localhost", "mike", "cool");
if (!$db)
}
echo "Could not connect to database.";
exit;
}
mysql_select_db("news");
$query = "inert into articles values
('".$title"', '".$about."', '".$screenshots"', '".$source."')";
$result = mysql_query($query);
if ($result)
echo mysql_affected_rows()." Article insterted into database.";
?>
The thing i need to do is, make a file named $title.php so people can actually go to it, but im unclear on how to do this, thanks for the help, mike