| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 04/28/2006 07:10:06
|
McPete
Newbie
Joined: 04/25/2006 09:13:33
Messages: 8
Offline
|
Quick question this time
Could someone please tell me the correct syntax for making a Prepaired statement. I need to insert an int (i) into the sql, as well as sort by alphabetical order.
This is what I figured it should be:
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 04/28/2006 08:29:30
|
tfecw
Newbie
Joined: 09/19/2005 15:02:20
Messages: 144
Location: No. VA.
Offline
|
Check out this link Prepared Statements
Also, I *think* your code should work, provided you change this
to this
Check out the link and let us know what hang ups you are having, error messages, logic errors, etc
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 04/28/2006 08:36:46
|
stdunbar
Newbie
![[Avatar]](/images/avatar/a87ff679a2f3e71d9181a67b7542122c.png)
Joined: 06/22/2005 14:51:37
Messages: 884
Location: Superior, CO, USA
Offline
|
Also, you may want to simplify things a bit if you're using PreparedStatements. It takes a little more code but, especially if you start dealing with Strings, it makes your life much simpler.
Something instead like:
This message was edited 3 times. Last update was at 04/28/2006 08:37:58
|
Thanks for using the forums at hotjoe.com |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 04/28/2006 09:20:16
|
McPete
Newbie
Joined: 04/25/2006 09:13:33
Messages: 8
Offline
|
Thanks guys.
Can't believe I left the "+" out
The connection is being dealt with in another class, so I think I can get away with it as it is...we shall see
|
|
|
 |
|
|