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

$getcomic = $mysql_conn->query("SELECT * FROM comics WHERE status = \"publish\" ORDER BY RAND() LIMIT 1");
$getcomic3 = $getcomic->fetch_assoc();

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

?>