Hi, in this my php/mysql script....
<?
$title = $_POST['title'];
$about = $_POST['about'];
$screenshots = $_POST['screenshots'];
$source = $_POST['source'];
if (!$title || !$about || !$screenshots || !$source)
{
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", "c00l");
if (!$db)
{
echo "<b>Could not connect to database, try again later.</b>";
exit;
}
mysql_select_db("news");
$sql ="INSERT INTO articles (title, about, screenshots, source) VALUES ('', '$title', '$about', '$screenshots', '$source')";
$result = mysql_query($sql) or die (mysql_error());;
if ($result)
My_SQLError()
?>
i get this error...
Column count doesn't match value count at row 1
Waht does that mean and hiow can i fix it?
Thanks- Brcolow