![]() |
Custom SQL Functions
PHP-File [sql.php]:
PHP Code:
PHP Code:
PHP Code:
Example DB-NPC [SQL]: PHP Code:
|
Nice!
|
Nice work,
I suggest you put the SQL connection details in the PHP script though. That way you can safely use the script clientside without worrying about people getting your DB info. If you're only using it serverside you should check the IP and user agent of the connecting machine to increase security theres an example here: http://forums.graalonline.com/forums...&highlight=php |
Okay added a new function and replaced an old one.
PHP Code:
PHP Code:
PHP Code:
------------------- Updated Class [sql_functions]: PHP Code:
Quote:
|
Stefan will (HOPEFULLY) be releasing serverside sockets soon to developers. These sockets will need available ips added so as to protect against DoS attacks and such. Once they come out, stuff like this will be so much easier :D.
|
All times are GMT +2. The time now is 01:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.