Raised This Month: $51 Target: $400
 12% 

SQL SYNTAX ERROR[UPDATED]


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-03-2011 , 15:20   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #31

Quote:
Originally Posted by lucas_7_94 View Post
new i doesnt should be new i = 0?
Default value is 0, setting it isn't required.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 08-03-2011 , 15:21   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #32

Quote:
Originally Posted by Exolent[jNr] View Post
Default value is 0, setting it isn't required.
ah okei.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 08-03-2011 , 15:30   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #33

By the way, I tried formating a huge query like this for SQLx when I was working on one of my projects and it was capped at a certain length.
__________________
okay
ARES[ro] is offline
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 08-03-2011 , 16:01   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #34

now , no error found

but the data will not save

i think it may be related to MySQL Server

how to create a MySQL Server?
It needs a software?

i am not sure what i should filled in the parameters(host, username, password, database)
davidto1995 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-03-2011 , 16:28   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #35

Quote:
Originally Posted by davidto1995 View Post
now , no error found

but the data will not save

i think it may be related to MySQL Server

how to create a MySQL Server?
It needs a software?

i am not sure what i should filled in the parameters(host, username, password, database)
Are you saying that you haven't even connected to the MySQL database? How can you test this without connecting to a database?
__________________
fysiks is offline
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 08-03-2011 , 16:45   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #36

Quote:
Originally Posted by fysiks View Post
Are you saying that you haven't even connected to the MySQL database? How can you test this without connecting to a database?
no.
but i am confused with MySQL(heard, never dealt with it)

i google MySQL
i install a software which is provided by that website
http://www.mysql.com/downloads/mysql/(MySQL Community Server 5.5.15)

and i type in these in the script(dun know if it is correct):
host: localhost
username: root
password: (i type in the password that i registered in installation , but i searched and i found that othes did not type in anything)
database: MySQL(i dun know what shuold be filled in)

however , data did not save(because it is not saved , i am not sure that data can be loaded)

through searching , i know that i can host a MySQL database on web
btw , i dun know which supports external connection..

Last edited by davidto1995; 08-03-2011 at 16:48.
davidto1995 is offline
Old 08-03-2011, 16:46
davidto1995
This message has been deleted by davidto1995. Reason: copied again
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-03-2011 , 19:15   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #37

If no data is saved, then there's something wrong with your INSERT/UPDATE statement.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 08-03-2011 , 20:15   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #38

And you can use SQLite too.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 08-04-2011 , 04:28   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #39

Quote:
Originally Posted by Exolent[jNr] View Post
If no data is saved, then there's something wrong with your INSERT/UPDATE statement.
YOU MEAN THAT I HAVE NO MISTAKES WITH MY
(HOSTNAME, USERNAME, PASSWORD, DATABASE)?
davidto1995 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-04-2011 , 04:31   Re: SQL SYNTAX ERROR[UPDATED]
Reply With Quote #40

You should be checking if it can't connect anyway.
Using threaded queries, it gives an error code TQUERY_CONNECT_FAILED for not able to connect.
For non-threaded queries, just check if the db connection is Empty_Handle.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode