Originally Posted by evilghost
Sure, simply create a separate page called "functions.php" and on each PHP page where you require the use of the function issue the following:
It's really that easy.
Remember, any time you pass a variable to MySQL make sure you mysql_escape_string() first to avoid the possibility of SQL injection attacks.
Originally Posted by superklye
I <3 includes
ViN you're putting your security/login session checks as an include file as well, right?
well, i havent really learned all that yet and havent written the database nor the SELECT/INSERT/UPDATE/DELETE statements/functions i need yet.
ill be back here when i need help with preventing SQL injection attacks. thx guys