From 76cafb714ce3613bf0cfe85488100683245bc5c4 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sun, 21 May 2017 01:22:48 -1000 Subject: [PATCH] getting into if else hell --- gw-record.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/gw-record.php b/gw-record.php index 0de4fb9..f075803 100644 --- a/gw-record.php +++ b/gw-record.php @@ -25,13 +25,20 @@ while ($row = $result->fetch_array()){ echo ' a '; #experimental stuff -echo '
'; -echo '
'; -echo '

Current drop value is: ' . $whatdropped . '

'; //if this works then it's time to make a big as if else statement +if ($whatdropped = "1"){ + echo 'run weapon code'; +} else if ($whatdropped = "2"){ + echo 'run material code'; +} else if ($whatdropped = "3"){ + echo 'run rune code'; +} else { + echo '
'; + echo '
'; +} //code for white blue purple etc $sqlweaprare = "SELECT * FROM `listrarity` ORDER BY `rareid` ASC";