أيمن دوبابي

2 نقاط السمعة
3.98 ألف مشاهدات المحتوى
عضو منذ
  • PHP
لا .اسم الصفحة insert the articles .php و لكن لم اجد من اين اضيف ملف. لو عندك حساب شخصي و تستطيع ان تعطيه لي سارسله لك .وشكرا اك
  • PHP
8000000){ $formok=FALSE; echo "the file isbig,try again"; } if($formok){ if($connect=mysqli_connect('localhost','root','','php')){ $content=file_get_contents($path); $safetitle=mysqli_real_escape_string($connect,$title); $safethread=mysqli_real_escape_string($connect,$thread); $safeimage=mysqli_real_escape_string($connect,$content); $sqltitle="INSERT INTO title(title) VALUES('$safetitle')"; $sqlthread="INSERT INTO title(topic,date) VALUES('$safethread','$date')"; $sqlimage="INSERT INTO title(name,size,type,content) VALUES('$name','$size','$type','$safeimage')"; $querytitle=mysqli_query($connect,$sqltitle); $querythread=mysqli_query($connect,$sqlthread); $queryimage=mysqli_query($connect,$sqlimage); } if($querytitle && $querythread && $queryimage){ $imageid=mysqli_insert_id($connect); echo "the insert has done"; } else {echo "there is an errors in DB";} } } ?> tinyMCE.init({ // General options mode : "textareas", theme : "advanced", plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,visualblocks", // Theme options theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 :
  • PHP
شكرا لك
  • PHP
ارجو ان ان توضح اكثر اخي
  • PHP
شكرا لك اخي لقد نفذ الكود.... لكن سؤال بسيط : $use->sql( 'Add Username Here', 'Add Password Here' ); هل اتركه هكذا : add username here..
  • PHP
Notice: Undefined index: username in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\control2.php on line 13 Notice: Undefined index: password in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\control2.php on line 14 Notice: Undefined variable: connect in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\control2.php on line 17 Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\control2.php on line 17 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\control2.php on line 18 password or username it not true, please enter the right input...