"There has been an error. Please try again. Make sure you have completed all the requiered fields".
Mentionez k fieldul Entry este declarat in baza de date ca longtext.
Daca are cineva o idee.... Multumesc anticipat.
Asta e codul de la add_article.php
Cod: Selectaţi tot
<?php
include("db/cfg_db.php");
//get username
$by=$_SESSION['username'];
// get data that sent from form
$title=$_POST['title'];
$entry=$_POST['entry'];
$img_url=$_POST['img_url'];
$datetime=date("d/m/y h:i:s"); //create date time
if($entry!=''&&$title!='')
{
$sql="INSERT INTO articles(`title`, `entry`, `img_url`, `datetime`,`by` )VALUES('$title', '$entry', '$img_url', '$datetime', '$by')";
$result=mysql_query($sql);
if($result)
{
echo "Successful<BR>";
echo "<a href=index.php?page=articles>View your article</a>";
}else{
echo "There has been an error. Please try again. Make sure you have completed all the requiered fields";
}
}else{
echo "You have not completed a field. Please try again.";}
mysql_close();
?>PS. Scuze de eventualele greseli de scriere...sau gramaticale(is obosit azi).