PHP - What Are You Listening To?
So I am just wondering to what music/genres you guys are listening too when working on something. This is somewhat forum game, so I will start. When I am programming something, I am mostly listening to metal (almost all genres of metal, including nu-metal and metalcore). Right now I am listening to Sabaton - Primo Victoria
Similar TutorialsI'm trying to make a page with multiple $_GET situations example if my user wants to log out, he clicks the loggout link which sends him to user.php?v=dc if($_GET['v']=="dc") { session_destroy(); exit; } if(isset($_GET['v'])=="dc") { session_destroy(); exit; } but it seems no matter where the user goes it destroys the session. if($_GET['v']=="mail") { // show mail } but instead it does what's in $_GET['v']=="dc" <?php if(isset($_GET["v"])=="dc"){ if($_SESSION[user]=='Guest'){ echo "You are not logged in fool."; exit; }else{ echo "Session closed!"; session_destroy(); } } ?> That above doesn't work, when I go elsewhere it still destroy the session... no matter if it's a guest or not. If I go to ($_GET['v']=="godknows") as a user and not a guest, it will destroy the session. I get the strangest errors... S.O.S Hi Guys, I am trying to get the while function to list four of my items on a row however I have no idea how and every time I try, I fail. Please give me a hand? Here is the code I have so far Code: [Select] if($row['photo'] == "#no_photo") $photo = ('<img src="images/item_pictures/default_item.png" width="150" height="150" alt="Default Item">'); else $photo = $row['photo']; echo "<br /> <br />" ; echo "<br /> <font face='Comic Sans MS, cursive'>Click on an item to view it in full.</font> <br /> <br />"; if($row['photo'] == "#no_photo") $photo = ('<img src="images/item_pictures/default_item.png" width="100" height="100" alt="Default Item">'); else $photo = $row['photo']; echo "<br /> <br />" ; $i = 0; while ($i < $num) { $f1 = "<tr><td><font size='6'><a href='item.php?id=" . mysql_result($result,$i,"item_id") . "'>" . mysql_result($result,$i,"item_name") . "</a></font></td><td> " . $photo . "</td></tr>"; echo "" . $f1 ."" ; $i++; Thanks, Jacbey |