Skip to content

Instantly share code, notes, and snippets.

@shahariaazam
Created April 21, 2013 06:18
Show Gist options
  • Save shahariaazam/5428673 to your computer and use it in GitHub Desktop.
Save shahariaazam/5428673 to your computer and use it in GitHub Desktop.
<?php
//For Database query
$q = $_GET["q"];
$sql = "select * from user where 'username' ="$q;
$query = mysql_query ($sql);
if ($q === 1) {
echo "Yes";
} else {
echo "No";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment