Skip to content

Instantly share code, notes, and snippets.

@iamcal
Created May 20, 2011 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamcal/982152 to your computer and use it in GitHub Desktop.
Save iamcal/982152 to your computer and use it in GitHub Desktop.
<?php
mysql_connect('localhost', 'root', 'root');
mysql_select_db('porn');
$result = mysql_query("SELECT * FROM images WHERE has_goats=1 AND has_nuns=1");
while ($row = mysql_fetch_array($result)){
echo "<img src=\"$row[image]\" />\n";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment