View difference between Paste ID: 5yQDkagN and UQbxAV2f
SHOW: | | - or go back to the newest paste.
1-
$mq = "SELECT * FROM images order by RAND() LIMIT 1";
1+
$mq = "SELECT id FROM images order by RAND() LIMIT 1";
2
$randid = mysql_query("$mq",$conn);
3-
$randurl = "http://facesofrekt.austeritysucks.com/rekt.php?id=".$randid
3+
$row = mysql_fetch_row($randid)
4
$randurl = "http://facesofrekt.austeritysucks.com/index.php?id=".$row;
5
echo "<a href=".$randurl.">Random</a>";