أيمن دوبابي

2 نقاط السمعة
3.78 ألف مشاهدات المحتوى
عضو منذ
1

عندما انفذ الكود تظهر بعض الاخطاء ارجو ان تساعدوني!!!!

code php:localhost,$this->db_user,$this->db_password,$this->db_name); } function sql(){ $username=$_POST['username']; $password=$_POST['password']; $sql="SELECT * FROM users WHERE username='$username' AND password='$password'"; $query=mysqli_query($sql,$connect); $num=mysqli_num_rows($query); if($num==1){ $_SESSION["username"]="username"; $_SESSION["password"]="password"; header("location:control3.php"); } else{echo"password or username it not true, please enter the right input....";} } } $use=new mysql; $use->sql(); ?>
1

البيانات لا تدخل الى database

عندما اضغط على submit تظهر هذه الرسالة : no file up,try again the file is not image,try again insert the articles.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 :
0