Thread: PHP Question
View Single Post
Old 05-14-07, 01:48 PM   #4
Join Date: Mar 2004
Posts: 15,486
Default Re: PHP Question

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.
thx that's awesome.

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
ViN86 is offline   Reply With Quote