ارجو المساعده حيث انهذا الكود لا يقوم بالعمل الذى وجد من اجله ولا ادرى اين الحطأ
والكود ايضا مع المرفقات
<?php
include('config.php') ;
/*
CREATE TABLE `addnews` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`author` VARCHAR( 255 ) NOT NULL ,
`titel` VARCHAR( 255 ) NOT NULL ,
`contant` LONGTEXT NOT NULL
) ENGINE = MYISAM ;
*/
$a= $_post['author'];
$t= $_post['title'];
$c= $_post['contant'];
if(isset($_post['add'])&& $_post['add']=='news'){
$insert= mysql_query("INSERT INTO addnews(author,title,contant)VALUE
('$a','$t','$c')" )or die("no news insert");
if(isset($insert)){
echo"<h3>insert is done@@</h3";
}
}
echo"<form action='".$_SERVER['PHP_SELF']."'method='post'>
author:<input type='text' name='author' /><br />
titel:<input type='text' name='title' /> <br />
contant:<textarea name=contant ></textarea><br />
<input type='submit' value=insert is don!!/>
<input type='hidden' name='add' value='news'/>
</form>;"
?>