diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-08 21:09:05 +0000 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-01-08 21:09:05 +0000 |
commit | 459e929311d8806f604c0b914ba4b37aa731fbfc (patch) | |
tree | d81247d7ee4f768c9df552df07aad6d6896047f8 /pages/random.php | |
parent | 5b892eafafb1f41bab1a20f1524cef144042e3e1 (diff) | |
download | pillowcase-master.tar.gz pillowcase-master.tar.bz2 pillowcase-master.zip |
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 | ||