/ Published in: PHP

This code generates SQL depending on semantic type of variable from user input.
php>5.2
php>5.2
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//selecting user based on his personal ID number //selecting user based on his email //selecting user based on his username else $sql = "select * from user where username='$var'";
Comments
