# mysql\_query

**URL:** <https://forum.kirupa.com/t/mysql-query/295706>\
**Category:** Uncategorized\
**Created:** [September 3, 2009, 6:42am UTC](https://forum.kirupa.com/t/mysql-query/295706 "2009-09-03T06:42:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![npgames](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/npgames/32/2914_2.png) [@npgames](https://forum.kirupa.com/u/npgames)\
**Post date:** [September 3, 2009, 6:42am UTC](https://forum.kirupa.com/t/mysql-query/295706/1 "2009-09-03T06:42:41Z")

</div>

im starting to learn how to interact with mysql with php. but i keep getting an error from this line of code

mysql\_query(“INSERT INTO sm2lvls(‘user’,‘level’,‘rating’)VALUES($Suser,$Slevel,$Srating)”)or die(mysql\_error());

the error is

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘‘user’,‘level’,‘rating’)VALUES(,)’ at line 1
