Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

SQL PHP Syntax

$
0
0

Hi, I'm just wondering but if my webhost has SQL version 5.1, what are the syntax of that for PHP login & register forms? So like 

 

$q = "INSERT INTO `Table1` (`username`,`password`,`email`) " 
    ."VALUES ('".$_POST["username"]."', " 
    ."PASSWORD('".$_POST["password"]."'), " 
    ."'".$_POST["email"]."')";

 

 

Would this be the right use of syntax? I'm having a few problems with making a clean and safe php login and register form. 

 

Thanks.


Viewing all articles
Browse latest Browse all 13200

Trending Articles