ok here is my script:
<?php
$number = $_POST[number];
$poster = $_POST[poster];
$date = $_POST[date];
$article = $_POST[article];
if(!$number){echo 'This page has a error Please got back to the admin section and go through the "Change News Procedior" again. ';
}
if(!$poster){echo 'You forgot to enter your name. Please go back and fix this area. ';
}
if(!$date){echo "You didn't enter a date. Please go back and fix this area. ";
}
if(!$article){echo 'You forgot the article. Please go back and fix this area. ';
}
else {
include "SQL.php";
$query = "UPDATE news SET poster = '$poster', date = '$date', article = '$article' WHERE number = '$number'";
echo $query;
}
?>
What is wrong with my script? It won't update the database. the echo $query shows :
UPDATE news SET poster = 'ATLien', date = '55/55/5555', article = 'This shit better work.' WHERE number = '1'
Can some one help me out and tell me what is up. I just can't figure it out. All my $_POST varibles are there. I echoed all of them and they all are showing up.