+ 2
parse error:syntax error, unexpected (T_VARIABLE) around line ...
whats wrong with my php .. did this after escaping the strings from the form fields with mysqli_real_escape_string($conn, $POST['name']); #query $sql= " INSERT INTO queue ("name","email","number") VALUES ("$name","$email","$number") "; im getting the error above, why is my data not being inserted in the database?
3 Antworten
+ 3
Those 3 lines aren't on a single line. This causes PHP to treat them as different statements and says that there's a missing semicolon.
+ 2
Antony Otieno Onyango can you provide us with the full code?
+ 1
thanks.. so i fixed my $sql string and now idk whatsup.. its outputting my last lines of code on the screen instead of making a connection and submitting..but im not getting any error!!!
i.e. mysqli_close($conn);
why im i seeing this,its not returning any error but code and i dont see anything wrong on my syntax..