summary refs log tree commit diff stats
path: root/pages/random.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/random.php')
-rw-r--r--pages/random.php5
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
7header('Location: http://pillowcase.fourisland.com/comic' . $getcomic3['comic_id'] . '.htm'); 6header('Location: http://pillowcase.fourisland.com/comic' . $getcomic3['comic_id'] . '.htm');
8 7