summary refs log tree commit diff stats
path: root/pages/random.php
blob: 15d775839177a2b2fd5e7ef16b26d982bd28b450 (plain) (blame)
1
2
3
4
5
6
7
8
9
<?php

$getcomic = "SELECT * FROM comics WHERE status = \"publish\" ORDER BY RAND() LIMIT 1";
$getcomic2 = mysql_query($getcomic);
$getcomic3 = mysql_fetch_array($getcomic2);

header('Location: http://pillowcase.fourisland.com/comic' . $getcomic3['comic_id'] . '.htm');

?>