Sql error with bought script.

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

killay

Established Member
Impact
2
Hi,

I recently bought a mmo php script from ravan.info. I tried contacting them, but haven't got any response yet in 2 days. I've been searching on the internet and found out that they might have copied the script from another website. The other way around is also possible offcourse, none have proof. The only problem I have now is that I get an sql error. I hope now, one of you guys can help me out :)

PHP:
QUERY ERROR: 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 ',0, '0', 'a:4:{s:4:\"stat\";s:4:\"will\";s:3:\"dir\";s:3:\"pos\";s:8:\"inc_type\' at line 1
Query was INSERT INTO items VALUES('',6,'test','testdesc',,,0, '0', 'a:4:{s:4:\"stat\";s:4:\"will\";s:3:\"dir\";s:3:\"pos\";s:8:\"inc_type\";s:7:\"percent\";s:10:\"inc_amount\";i:100;}', '0', 'a:4:{s:4:\"stat\";s:6:\"energy\";s:3:\"dir\";s:3:\"pos\";s:8:\"inc_type\";s:6:\"figure\";s:10:\"inc_amount\";i:0;}', '0', 'a:4:{s:4:\"stat\";s:6:\"energy\";s:3:\"dir\";s:3:\"pos\";s:8:\"inc_type\";s:6:\"figure\";s:10:\"inc_amount\";i:0;}', 0, 0)
 
Close
0
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Those multiple commas in a row look a bit suspicious to me...
 
Close
0
I guess the problem is this:
'test','testdesc',##HERE###,##AND HERE###,0,

It should be either NULL Or have some value.
 
Close
0
thanks, I'll check into that :)
 
Close
0
CatchedCatched

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back