Home » Renegade Discussions » Mod Forum » MySQL with SSGM?
Re: MySQL with SSGM? [message #433043 is a reply to message #433034] |
Sun, 18 July 2010 06:58 |
|
TechnoBulldog
Messages: 15 Registered: May 2010 Location: Texas
Karma:
|
Recruit |
|
|
Sladewill wrote on Sun, 18 July 2010 05:15 |
#include "windows.h"
using namespace::std;
They are what fixed it for me yesterday.
|
Oh, yeah, that fixes it, I think. I think WIN32_LEAN_AND_MEAN was messing it up, as well as the order it was in. I can access the function now, but I'm trying to find a way to use the c++ connector instead of an open C connection. I have a feeling that's impossible (lol) but I'm going to keep looking for a way.
Again, thanks for the help so far everyone!
EDIT: I've found out that if you use mysql_escape_string (no real) it doesn't require an open connection, but it also doesn't use the current character set, or whatever that is.
http://dev.mysql.com/doc/refman/5.1/en/mysql-escape-string.html
Quote: |
You should use mysql_real_escape_string() instead!
This function is identical to mysql_real_escape_string() except that mysql_real_escape_string() takes a connection handler as its first argument and escapes the string according to the current character set. mysql_escape_string() does not take a connection argument and does not respect the current character set.
|
Cloud-Zone Gaming. Check it out.
^^ Awesome right?
[Updated on: Sun, 18 July 2010 07:36] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Jan 27 08:25:37 MST 2025
Total time taken to generate the page: 0.00940 seconds
|