Jump to content

Mysql error...


Hamlets666

Recommended Posts

[code]$onlinesave="INSERT INTO store(opis, owner, moneybuy, wepa1, wepa2, wepa3, wepa4, wepa5, wepa1m, wepa2m, wepa3m, wepa4m, wepa5m, cara1, cara2, cara3, cara4, cara5, cara1m, cara2m, cara3m, cara4m, cara5m)values('$opis', '$owner', '$moneybuy, '$wepa1', '$wepa2', '$wepa3', '$wepa4', '$wepa5', '$wepa1m', '$wepa2m', '$wepa3m', '$wepa4m', '$wepa5m', '$cara1', '$cara2', '$cara3', '$cara4', '$cara5', '$cara1m', '$cara2m', '$cara3m', '$cara4m', '$cara5m')";
mysql_query($onlinesave) or die(mysql_error());[/code]

and result :

[b]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 'LOL', '666', '666', '666', '666', '666', '666', '666', '666', '666', '666', '666' at line 1[/b]

DUMP:

[code]CREATE TABLE `store` (
`id` BIGINT NOT NULL AUTO_INCREMENT ,
`opis` TEXT NOT NULL ,
`owner` TEXT NOT NULL ,
`moneybuy` BIGINT NOT NULL ,
`wepa1` TEXT NOT NULL ,
`wepa2` TEXT NOT NULL ,
`wepa3` TEXT NOT NULL ,
`wepa4` TEXT NOT NULL ,
`wepa5` TEXT NOT NULL ,
`wepa1m` BIGINT NOT NULL ,
`wepa2m` BIGINT NOT NULL ,
`wepa3m` BIGINT NOT NULL ,
`wepa4m` BIGINT NOT NULL ,
`wepa5m` BIGINT NOT NULL ,
`cara1` TEXT NOT NULL ,
`cara2` TEXT NOT NULL ,
`cara3` TEXT NOT NULL ,
`cara4` TEXT NOT NULL ,
`cara5` TEXT NOT NULL ,
`cara1m` BIGINT NOT NULL ,
`cara2m` BIGINT NOT NULL ,
`cara3m` BIGINT NOT NULL ,
`cara4m` BIGINT NOT NULL ,
`cara5m` BIGINT NOT NULL ,
PRIMARY KEY ( `id` )
);[/code]

Varuables:

[quote]opis - LOL
owner - dyzaster
moneybuy - 12
wepa1 - LOL
wepa2 - 666
wepa3 - 666
wepa4 - 666
wepa5 - 666
wepa1m - 666
wepa2m - 666
wepa3m - 666
wepa4m - 666
wepa5m - 666
cara1 - 666
cara2 - 666
cara3 - 666
cara4 - 666
cara5 - 666
cara1m - 666
cara2m - 666
cara3m - 666
cara4m - 666
cara5m - 666[/quote]
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.