Jump to content

[SOLVED] SQL variant, MYSQL 4


nadeemshafi9

Recommended Posts

hello guys

i am able to work normaly whith all the tables in my DB, exept i just added another table, i am sure it has no special change made to any feild. The prob is it is insisting on ` being around one feild in particular (all feilds are same type)

$sql = "INSERT INTO users (userid, password, email, `group`) ".

the thing i am worried about is for portability as this will be ported on to LAMP and is being developed on W,ISS,M,P is why the hell is it insisting i have the crazy chars around group like this `group` i mean none of my other tables in the db ask for this, mysql_error basicaly says you hav an error near group until i put it like `group` so why is this.

as always Thanks guys for any help.
Link to comment
Share on other sites

i found some info but it dosent make sense

mysql.com
A phrase that is enclosed within double quote (`"') characters matches only rows that contain the phrase literally, as it was typed.

why ? its no diff from any other feild, il try delete it and make it again see what happens 1 sec.
Link to comment
Share on other sites

[quote author=nadeemshafi9 link=topic=120623.msg494979#msg494979 date=1167701102]
no change still requires the special quotes `` around group but why ?
[/quote]
GROUP is a reserved MySQL keyword (as in GROUP BY)... so you have to escape it.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.