مرحبا اخواني category حقل موجود عندي بقاعدة البيانات وانا متأكد منه ولكن بالعرض لا يعرضه في الجدول وبالاضافة لا يضيف لكل الجدول ,,
هدا كود الاضافة
if(isset($_POST['add'])){
//$caa=mysql_real_escape_string($_POST['category']);
$S->add_new($_POST['named_job'],$_POST['location'],$_POST['category'],$_POST['qualification'],$_POST['specialty'],$_POST['expertise'],$_POST['email'],$_POST['mobile'],$_POST['notes']);
echo $_POST['category'];
echo mysql_error();
}
وهذه الدالة ..
public function add_new($named_job,$location,$category,$qualification,$specialty,$expertise,$email,$mobile,$notes){
$rs=mysql_query("insert into offers_employment(named_job,location,category,qualification,specialty,expertise,email,mobile,notes) values('$named_job','$location','$category','$qualification','$specialty','$expertise','$email','$mobile','$notes')");
}
ما هو الخطأ برأئيكم ؟
التعليقات