Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » MySQL with SSGM?
Re: MySQL with SSGM? [message #432930 is a reply to message #432883] Sat, 17 July 2010 06:57 Go to previous messageGo to previous message
TechnoBulldog is currently offline  TechnoBulldog
Messages: 15
Registered: May 2010
Location: Texas
Karma:
Recruit
Wow, thanks for the help! It's working now!

I'm also wondering if there is a mysql_real_escape_string function for c++ like there is for PHP. This would help a lot. Also, does anyone have a clue why I get 6 warnings?

Warnings:

Toggle Spoiler


Also, reborn, it was a very simple console application. This was the query in my test console application.

statement->execute("INSERT INTO cms_content(alias, body) VALUES('cplusplus', 'does it work?')");


And the queries I posted in my code (both of which now work):

std::string query = StrFormat("INSERT INTO messages(name, message) VALUES('%s', '%s')", pName, Text[0]);
			
// Will cause server to crash.
//statement->execute(query);

// Will cause server to crash.
//statement->executeQuery("INSERT INTO messages(name, message) VALUES('tester5', 'testing value')");


But really, thanks for the help everyone! I think this plugin might actually be useful when it's done.


Cloud-Zone Gaming. Check it out.

^^ Awesome right?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help with sockets
Next Topic: Human Anims
Goto Forum:
  


Current Time: Sun Jan 26 18:44:53 MST 2025

Total time taken to generate the page: 0.01134 seconds