ztizzlegaming / CSGOWinBig

Open-source Counter-Strike: Global Offensive jackpot betting website.
MIT License
170 stars 104 forks source link

[Fixed] Chat doesn't save into SQL database #117

Closed LilFuzzFuzz closed 8 years ago

LilFuzzFuzz commented 8 years ago

For some reason, when you input a trade offer link or chat message, they do not get saved into SQL database.

I can grab information from the database but no save stuff. (I'm using a SQL database that came with the webhost, and I was able to create tables from PHP on another file!)

mx0c commented 8 years ago

what does /php/send-chat-message.php and /php/login-status.php return?

LilFuzzFuzz commented 8 years ago

{"success":1,"data":{"loginStatus":1,"userInfo":{"steamid":(steaminfohere) for login-status and {"success":0,"errMsg":"The required text for the message was not sent correctly or was left blank. Please refresh and try again."} for send-chat-message.php (That's what I see when I access the files)

LilFuzzFuzz commented 8 years ago

Update: Trade offers will get saved! But chat still isn't

mx0c commented 8 years ago

have the same problem im getting an 500 internal server error in the console.

TheAnthonyNL commented 8 years ago

Rename send-chat-message.php to populate-msg.php and do the same in script.js.

LilFuzzFuzz commented 8 years ago

Odd, didn't seem to work... I can bare with no chat though.