Why is this syntax used:
mysql_query("INSERT INTO users (username, password, email, hash) VALUES(
'". mysql_escape_string($name) ."',
'". mysql_escape_string(md5($password)) ."',
'". mysql_escape_string($email) ."',
'". mysql_escape_string($hash) ."') ") or die(mysql_error());
I do not have any confusion about mysql_escape_string , function, however why is mysql_escape_string($name)
, enclosed within two dots:. mysql_escape_string($name) .
then it is enclosed within double quotes:". mysql_escape_string($name) ."
lastly the whole thing is enclosed within a single quote :'". mysql_escape_string($name) ."'
I got this form the following web resource: http://net.tutsplus.com/tutorials/php/how-to-implement-email-verification-for-new-members/
...Its a php email verification program.