php - mysqli_query INSERT not working -


i trying execute mysqli_query insert values database not working.

mysqli_query($con, "insert `temp` (`name`, `email`, `delivery`, `session`) values ('$name', '$email', '$delivery', '$session'"); 

can see going wrong? thanks!

you're missing ) @ end of query:

mysqli_query($con, "insert `temp` (`name`, `email`, `delivery`, `session`)                     values ('$name', '$email', '$delivery', '$session')");                                                                       ^ 

btw, mysqli supports parametrized queries, should use them instead of string substitution.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -