View Single Post
Old 06.04.2007, 13:18   #14
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

i recommend using
PHP Code:
mysql_fetch_assoc( 
instead of
PHP Code:
mysql_fetch_array( 
and concerning the sql injections, all the $_GET and $_POST variables in the query do it this way
PHP Code:
INSERT INTO .....
VALUES (
   
'".addslashes($_GET['somevariable'])."',
   
'".addslashes($_POST['anothervar'])."'
); 
that will replace a ' or " with \"
Sauron is offline