Jump to content

Errors when dealing with any SQL functions


Recommended Posts

Posted (edited)

Hello all,

I been having problems with SQL databases and all the things related to SQL

since about a month ago (after i formated 'reinstalled' my Windows)

Even the scripts that was working fine, now it keeps showing me errors on every SQL line

i can't 'insert, upgrade, select, remove, or any other SQL related function

(( I'm talking about my LAN server, but everything is working just fine on my hosted server)

can anyone help me with this ?

Edited by Guest
Posted

Do you have the required tables and columns?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Moderators
Posted

And most of all, do you have a sql server on your pc like Easy PHP or wamp ?

EDIT: Except if you don't use the mySQL system

The rEvolution is coming ...

Posted

I think he's using SQLITE not mySQL.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

5 minutes ago, i uploaded another SQL based script, and it worked perfectly on my hosted server.

but it doesn't work on my LAN server, it shows the same errors like on that pic i uploaded

  • Moderators
Posted

Yeah I think too but I didn't realised immediately :lol:

maybe try to put ' ' like this:

executeSQLQuery("SELECT 'Attempts'  FROM ... ") 

And can you put a screen of your table with the column Attempts plz ?

The rEvolution is coming ...

Posted

here is one of the tables

    executeSQLCreateTable ( "GgInfo", "serial STRING, topic INT, real_name INT, country INT, age INT, profile_picture INT" )  

and this is the insert function

function on_Register ( player ) 
local serial = getPlayerSerial(player) 
 executeSQLInsert ( "GgInfo", "'".. serial .."','][topic ~','name','country','age','SpongeBob'" ) 
  outputChatBox("works !!!") 
end  

the function used to have about 10 strings passed from the client side to the server, and it used to work

now it doesn't (after the pc format) , i even deleted all the other unneeded strings, and supplied it with some random things

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...