diff options
Diffstat (limited to 'pages/random.php')
-rw-r--r-- | pages/random.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pages/random.php b/pages/random.php index 15d7758..049f151 100644 --- a/pages/random.php +++ b/pages/random.php | |||
@@ -1,8 +1,7 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | $getcomic = "SELECT * FROM comics WHERE status = \"publish\" ORDER BY RAND() LIMIT 1"; | 3 | $getcomic = $mysql_conn->query("SELECT * FROM comics WHERE status = \"publish\" ORDER BY RAND() LIMIT 1"); |
4 | $getcomic2 = mysql_query($getcomic); | 4 | $getcomic3 = $getcomic->fetch_assoc(); |
5 | $getcomic3 = mysql_fetch_array($getcomic2); | ||
6 | 5 | ||
7 | header('Location: http://pillowcase.fourisland.com/comic' . $getcomic3['comic_id'] . '.htm'); | 6 | header('Location: http://pillowcase.fourisland.com/comic' . $getcomic3['comic_id'] . '.htm'); |
8 | 7 | ||