insert query doesn't work sometime for some users with session variables

Issue I have this query for inserting data into database. mysqli_query($server,"INSERT INTO student (fname,lname,father,identification,student_number,tel,email,datetime,course_id,fee,refid) VALUES (‘$_SESSION[fname]’,’$_SESSION[lname]’,’$_SESSION[father]’, ‘$_SESSION[identification]’,’$_SESSION[student_number]’,’$_SESSION[tel]’,’$_SESSION[eemail]’,’$datetime’,’$_SESSION[courseid]’,’$_SESSION[fee]’,’$result->RefID’)") It works for…

Read More →