mysqli - how to rectify this "SQL syntax" in php&mysql -


i'm trying create tagging sys demo here. , i'm stumped why error

you have error in sql syntax; check manual corresponds mariadb server version right syntax use near '#ok )' @ line 1

here code:

$insert=mysqli_query($conn, 'insert `hashtag` (posts) values ('.$data1.')') or die(mysqli_error($conn));                         

any appreciated.

in mysqli query don't have put $conn . remove , in query put '".$data1."' , check.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -