summary refs log tree commit diff stats
path: root/pages/random.php
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-01-08 21:09:05 +0000
committerStar Rauchenberger <fefferburbia@gmail.com>2024-01-08 21:09:05 +0000
commit459e929311d8806f604c0b914ba4b37aa731fbfc (patch)
treed81247d7ee4f768c9df552df07aad6d6896047f8 /pages/random.php
parent5b892eafafb1f41bab1a20f1524cef144042e3e1 (diff)
downloadpillowcase-master.tar.gz
pillowcase-master.tar.bz2
pillowcase-master.zip
Migrated to mysqli HEAD master
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