--
[ Picked text/plain from multipart/alternative ]
We have server and client mysql connections in our mod (using mysql++ API).
If you get stuck when implementing, let me know which aspect of
implementation you need help.

Once you have all the includes worked out, here's code to connect to the
database:

MYSQL mysql;
mysql_init(&mysql);
mysql_real_connect(&mysql,host,username,password,database,0,NULL,0)


Here's code to perform a query and store results:

MYSQL_RES *results;
mysql_query(&mysql, query);
results = mysql_store_result(&mysql);

Oliver


On 2/10/07, Ben Everett <[EMAIL PROTECTED]> wrote:
>
> There is no way built into the SDK to connect to a server... however you
> could do it via sockets. Another option is to use the MySQL++ API to
> connect
> to the server directly.
>
>
> http://www.devarticles.com/c/a/Cplusplus/Building-a-Store-Application-With-M
> ySQL-and-C/
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Niclas
> Sent: Saturday, February 10, 2007 1:31 PM
> To: [email protected]
> Subject: [hlcoders] connect to web/database
>
> --
> [ Picked text/plain from multipart/alternative ]
> How do I "open" a webpage from the serverside in the HL2mp sdk?
> So that I can send information to a php script.
>
> Or if I can connect to a MySQL server directly from the serverside.
> (tutorials would be appreciated)
>
>
>
> Niclas
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> __________ NOD32 2050 (20070210) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to