Jump to content

mastercjb

Members
  • Posts

    56
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mastercjb's Achievements

Member

Member (2/5)

0

Reputation

  1. For some reason my margins are grey and i cant seem to find out why!! I have looked this over a million times and was wondering if someone could take a look at it with new eyes. I will post a picture of the grey as well. I though it was color code #b4b4b4 but i dont see it being a background color... .leftmenu { margin-left: 8px; background-color : #546d8e; border : 1px solid #444; color : #ffffff; display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } .gap { line-height: 3px; } .topbar { width: 98%; margin-left: 8px; margin-right: 8px; margin-top: 8px; background-color: #546d8e; border: 1px solid #444; padding: 3px; color: #ddd; font-weight: bold; font-size: 11px; } .content { width: 100%; padding: 0px; } .contenthead { background-color: #709ad1; border: 1px solid #444; padding: 5px; color: #ddd; font-weight: bold; font-size: 12px; } .contentcontent { background-color: #546d8e; border: 1px solid #444; padding: 3px; color: #ddd; font-size: 11px; } .contentaskapro { background-color: #000000; border: 1px solid <?= $color[2] ?>; padding: 3px; color: <?= $color[1] ?>; font-size: 11px; } .bar_a{ width: 100px; border: 1px solid #b4b4b4; background-color:#666666; } .bar_b{ font-size: 10px; background-color:#FFFF00; } body { margin: auto; border: 1px solid #000000; width: 828px; background-color: #000000; font-family : Arial, Helvetica, sans-serif; font-weight : normal; } h1 , h2 , h3 , h4 , h5 , h6 { font-family : "Trebuchet MS", Verdana, "Lucida Sans", Arial, Geneva, Helvetica, Helv, "Myriad Web", Syntax, sans-serif; font-weight : normal; } .head, .headbox , .dynabox , a.leftmenu , a.topmenu { margin-left: 8px; font-weight : bold; text-decoration : none; font-size : 80%; font-family : Verdana, "Lucida Sans", Arial, Geneva, Helvetica, Helv, "Myriad Web", Syntax, sans-serif; } a {color : #b4b4b4; } .body a:hover, .dynabox .headbox a:hover {color : #ffffff; } .pos0 {background-color : #ffffff; color : #b4b4b4; } .pos1 {background-color : #000000;} .mainbox , .dynabox , a.leftmenu:link , a.leftmenu:visited {background-color : #546d8e; border : 1px solid #444; color : #ffffff; } .pos2 , .topnav , a.leftmenu:hover {background-color : #546d8e; color : #ffcc00; border : 1px solid #444; } .neg0 {background-color : #000000; } .neg1 , a.topmenu:hover {background-color : #000000; color : #ffffff; border : #b4b4b4; } .neg2 , .headbox , a.topmenu:link , a.topmenu:visited {background-color : #000000; color : #ffffff; border : #b4b4b4; } a.leftmenu:link { display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } a.leftmenu:hover { display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } a.leftmenu:visited { display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } a.topmenu:link { display : inline; padding-top : 5px; padding-right : 0; padding-bottom : 5px; padding-left : 0; border-style : solid; border-top-width : 0; border-right-width : 0; border-bottom-width : 0; border-left-width : 1px; text-align : center; } a.topmenu:hover { background-color : #000000; display : inline; padding-top : 5px; padding-right : 0; padding-bottom : 5px; padding-left : 0; border-style : solid; border-top-width : 0; border-right-width : 0; border-bottom-width : 0; border-left-width : 1px; text-align : center; } a.topmenu:visited { display : inline; padding-top : 5px; padding-right : 0; padding-bottom : 5px; padding-left : 0; border-style : solid; border-top-width : 0; border-right-width : 0; border-bottom-width : 0; border-left-width : 1px; text-align : center; } .headbox { background-color: #709ad1; border: 1px solid #444; padding: 5px; color: #ddd; display : block; padding: 5; width : 139px; text-align : left; } .topbox { margin-left: 8px; margin-right: 8px; margin-top: 8px; color: #ffffff; border: 1px solid #444; background-color: #709ad1; height : 158px; padding-right : 5px; padding-bottom : 0; } .topnav { border : solid ; border-width : 0 1px 1px; padding-top : 3px; padding-bottom : 0; } .mainbox { border: none; background-color: #000000; border-width : 1px 0 1px 1px; padding-top : 5px; padding-left : 5px; padding-right : 5px; padding-bottom : 5px; } .mainbox p a { font-weight : bold; font-size : 90%; } .dynabox { border: 1px solid #546d8e; text-align : center; } .dynabox .headbox { border-style : dashed; border-top-style : solid; border-right-width : 0; border-left-width : 0; padding-top : 3px; padding-left : 0; padding-right : 0; padding-bottom : 3px; } .dynacontent { padding-top : 3px; padding-left : 5px; padding-right : 5px; padding-bottom : 3px; text-align : left; font-size : 70%; font-weight : normal; } a{ color: #ffcc00; } a:hover{ color: #FFFF33; } .style1 {color: #BDBDBD} It could also be in my header page.... <? /* $color[0] = "#546d8e"; $color[1] = "#ddd"; $color[2] = "#444"; $color[3] = "#ffffff"; $color[4] = "#709ad1"; $color[5] = "#b4b4b4"; $color[6] = "#666666"; $color[7] = "#FFFF00"; $color[8] = "#b4b4b4"; $color[9] = "#ffcc00"; $color[10] = "#000000"; $color[11] = "#709ad1"; $color[12] = "#FFFF33"; */ session_start(); if (!isset($_SESSION['id'])){ include('home.php'); die(); } include 'dbcon.php'; include 'classes.php'; include 'updates.php'; if ($_GET['action'] == "logout"){ session_destroy(); die('You have been logged out.<meta http-equiv="refresh" content="0;url=index.php">'); } function microtime_float() { $time = microtime(); return (double)substr( $time, 11 ) + (double)substr( $time, 0, 8 ); } microtime_float(); $starttime = microtime_float(); if (Is_User_Banned($_SESSION['id']) == 1){ echo "<h1>" . Why_Is_User_Banned($_SESSION['id']) . "</h1>"; die(); } $user_class = new User($_SESSION['id']); // get style info $cresult = mysql_query("SELECT `value` FROM `styles` WHERE `style`='".$user_class->style."'"); $i = 0; while($line = mysql_fetch_array($cresult, MYSQL_ASSOC)) { $color[$i] = $line['value']; $i++; } //get style info $result = mysql_query("SELECT * FROM `serverconfig`"); $worked = mysql_fetch_array($result); if($worked['serverdown'] != "" && $user_class->admin != 1){ die("<h1><font color='red'>SERVER DOWN<br><br>".$worked['serverdown']."</font></h1>"); } $time = date(F." ".d.", ".Y." ".g.":".i.":".sa,time()); $result = mysql_query("UPDATE `grpgusers` SET `lastactive` = '".time()."', `ip` = '".$_SERVER['REMOTE_ADDR']."' WHERE `id`='".$_SESSION['id']."'"); function callback($buffer){ $user_class = new User($_SESSION['id']); $checkmail = mysql_query("SELECT * FROM `pms` WHERE `to`='$user_class->username' and `viewed`='1'"); $nummsgs = mysql_num_rows($checkmail); $mail = "[".$nummsgs."]"; $out = $buffer; $out = str_replace("<!_-mail-_!>", $mail, $out); return $out; } ob_start("callback"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Old School Skillers</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> .leftmenu { margin-left: 8px; background-color: <?= $color[0] ?>; border : 1px solid <?= $color[2] ?>; color : <?= $color[3] ?>; display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } .gap { line-height: 3px; } .topbar { width: 98%; margin-left: 8px; margin-right: 8px; margin-top: 8px; background-color: <?= $color[0] ?>; border: 1px solid <?= $color[2] ?>; padding: 3px; color: <?= $color[1] ?>; font-weight: bold; font-size: 11px; } .content { width: 100%; padding: 0px; } .contenthead { background-color: <?= $color[4] ?>; border: 1px solid <?= $color[2] ?>; padding: 5px; color: <?= $color[1] ?>; font-weight: bold; font-size: 12px; } .contentcontent { background-color: <?= $color[0] ?>; border: 1px solid <?= $color[2] ?>; padding: 3px; color: <?= $color[1] ?>; font-size: 11px; } .bar_a{ width: 100px; border: 1px solid <?= $color[5] ?>; background-color:<?= $color[6] ?>; } .bar_b{ font-size: 10px; background-color:<?= $color[7] ?>; } body { margin: auto; border: 1px solid <?= $color[10] ?>; width: 828px; background-image:url('images/bg1.png'); font-family : Arial, Helvetica, sans-serif; font-weight : normal; } h1 , h2 , h3 , h4 , h5 , h6 { font-family : "Trebuchet MS", Verdana, "Lucida Sans", Arial, Geneva, Helvetica, Helv, "Myriad Web", Syntax, sans-serif; font-weight : normal; } .head, .headbox , .dynabox , a.leftmenu , a.topmenu { margin-left: 8px; font-weight : bold; text-decoration : none; font-size : 80%; font-family : Verdana, "Lucida Sans", Arial, Geneva, Helvetica, Helv, "Myriad Web", Syntax, sans-serif; } a {color : <?= $color[5] ?>; } .body a:hover, .dynabox .headbox a:hover {color : <?= $color[3] ?>; } .pos0 {background-color : <?= $color[3] ?>; color : <?= $color[5] ?>; } .pos1 {background-color : <?= $color[8] ?>; } .mainbox , .dynabox , a.leftmenu:link , a.leftmenu:visited {background-color : <?= $color[0] ?>; border : 1px solid <?= $color[2] ?>; color : <?= $color[3] ?>; } .pos2 , .topnav , a.leftmenu:hover {background-color : <?= $color[0] ?>; color : <?= $color[9] ?>; border : 1px solid <?= $color[2] ?>; } .neg0 {background-color : <?= $color[5] ?>; } .neg1 , a.topmenu:hover {background-color : <?= $color[10] ?>; color : <?= $color[3] ?>; border : <?= $color[5] ?>; } .neg2 , .headbox , a.topmenu:link , a.topmenu:visited {background-color : <?= $color[11] ?>; color : <?= $color[3] ?>; border : <?= $color[5] ?>; } a.leftmenu:link { display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } a.leftmenu:hover { display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } a.leftmenu:visited { display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; } a.topmenu:link { display : inline; padding-top : 5px; padding-right : 0; padding-bottom : 5px; padding-left : 0; border-style : solid; border-top-width : 0; border-right-width : 0; border-bottom-width : 0; border-left-width : 1px; text-align : center; } a.topmenu:hover { background-color : <?= $color[10] ?>; display : inline; padding-top : 5px; padding-right : 0; padding-bottom : 5px; padding-left : 0; border-style : solid; border-top-width : 0; border-right-width : 0; border-bottom-width : 0; border-left-width : 1px; text-align : center; } a.topmenu:visited { display : inline; padding-top : 5px; padding-right : 0; padding-bottom : 5px; padding-left : 0; border-style : solid; border-top-width : 0; border-right-width : 0; border-bottom-width : 0; border-left-width : 1px; text-align : center; } .headbox { background-color: <?= $color[4] ?>; border: 1px solid <?= $color[2] ?>; padding: 5px; color: <?= $color[1] ?>; display : block; padding: 5; width : 139px; text-align : left; } .topbox { margin-left: 8px; margin-right: 8px; margin-top: 8px; color: <?= $color[3] ?>; border: 1px solid <?= $color[2] ?>; background-color: <?= $color[11] ?>; height : 158px; height : 158px; padding-right : 5px; padding-bottom : 0; } .topnav { border : solid ; border-width : 0 1px 1px; padding-top : 3px; padding-bottom : 0; } .mainbox { border: none; background-color: <?= $color[8] ?>; border-width : 1px 0 1px 1px; padding-top : 5px; padding-left : 5px; padding-right : 5px; padding-bottom : 5px; } .mainbox p a { font-weight : bold; font-size : 90%; } .dynabox { border: 1px solid <?= $color[0] ?>; text-align : center; } .dynabox .headbox { border-style : dashed; border-top-style : solid; border-right-width : 0; border-left-width : 0; padding-top : 3px; padding-left : 0; padding-right : 0; padding-bottom : 3px; } .dynacontent { padding-top : 3px; padding-left : 5px; padding-right : 5px; padding-bottom : 3px; text-align : left; font-size : 70%; font-weight : normal; } a{ color: <?= $color[9] ?>; } a:hover{ color: <?= $color[12] ?>; } .style1 {color: #BDBDBD} </style> <?if ($user_class->admin != 1) { echo Message("You are not authorized to be here."); include 'footer.php'; die(); }?> </head> <body> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td> <table class="topbar"> <tr> <td width="80%"> > Server Time: <? echo $time; ?> </td> <td width="20%" align="right"> Loged in as: <a href='profiles.php?id=<? echo $_SESSION['id'] ?>'><? echo $user_class->formattedname; ?></a></td> </tr> </table> </td> </tr> <tr> <td colspan="3" class="pos1" height="55" valign="middle"> <div class="topbox"> <table width='800'> <tr> <td width="50%"><img src="images/banner1.png" /> </td> <td width="30%"> </td> </td> </tr> </table> </div> </td> </tr> <tr><td> <table class="topbar"> <tr> <td> <? $result = mysql_query("SELECT * from `serverconfig`"); $worked = mysql_fetch_array($result); $messagetext = str_replace("^"," ",$worked['messagefromadmin']); echo "<marquee scrollamount='3'>".$messagetext."</marquee>"; ?> </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" width="150"> <div style="height:7px;"></div> <div> <?= ($user_class->admin == 1) ? ' <div class="headbox">Controls</div> <a class="leftmenu" href="control.php">Marrqee</a> <a class="leftmenu" href="control.php?page=setplayerstatus">Admin Set Up</a> <a class="leftmenu" href="cmessage.php">Messages</a> <a class="leftmenu" href="cnews.php">News</a> <a class="leftmenu" href="cquestion.php">Questions</a> <a class="leftmenu" href="control.php?page=skills">Skills</a> <a class="leftmenu" href="cer.php">Event Requests</a> <a class="leftmenu" href="cevents.php">Update Events</a> </div><br> <div class="headbox">Finished?</div> <a class="leftmenu" href="index.php">Exit</a> </div><br> <br /> ' : "" ?> <br /> <td valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="10"></td> <td valign="top" class="mainbox"> <table class="content"> <? if ($user_class->admin == 1 || $user_class->rmdays > 0){ } else { ?> </td></tr> <?php } ?>
  2. it was this line echo Message("You have posted a news update.); did they change something in 5.3.6 with the echo code?
  3. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. It was working fine, then i got switched to 5.3.6 and BAM, error..... "view source" is showing nothing, its blank...
  4. This script is working fine on PHP 5.3.1 but i got a new host that uses 5.3.6 and now its no longer working? What can i change to make it work, and does anyone know where i can learn the different coding between the 2 updates? <? include 'cpheader.php'; if (isset($_POST['submit'])) { $error = ($_POST['title'] == "") ? "You need to have a title!" : $error; $error = ($_POST['message'] == "") ? "You need to have a message!" : $error; if($error == ""){ $time = time(); $result= mysql_query("INSERT INTO `ads` VALUES('".$time."', '$user_class->id', '".$_POST['title']."', '".$_POST['message']."')"); echo Message("You have posted a news update.); } else { echo Message($error); } } ?> <tr><td class="contenthead">Post News</td></tr> <tr><td class="contentcontent"> This is the news that posts on the main page after you log in. HTML is turned on and you may use it to make your posts look a bit better than normal text, as well as add images. </td></tr> <tr><td class="contentcontent"> <form method='post'> <table width='100%'> <tr> <td width='25%'>Title:</td> <td width='25%'> <input type='text' name='title' size='40' maxlength='100'> </td> </tr> <tr> <td width='25%'>Message:</td> <td width='25%'> <textarea name='message' cols='60' rows='4' ></textarea> </td> </tr> <tr> <td width='25%'>Submit:</td> <td width='25%'> <input type='submit' name='submit' value='Post'> </td> </tr> </table> </form> </td></tr> <? include 'footer.php'; ?>
  5. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
  6. Im sure the PHP 5.3.6 changed something so the script doesnt work. Unless something was miscoded. Its a high scores table for a game called runescape online. The script takes information from there and displays it on this table for whatever username you type in. However im just getting an error screen now that i have 5.3.6..... <html> <head> <title>Runescape Stat Checker Created By Misterkid</title> </head> <form method="post" action="scores.php" id="searchform"> <table border="0" align="center"> <tr> <td ><h3 align ="center" >Username</h3></td> <td ><input type="text" name="username"></td> <td ><input type="submit" name="submit" value="Search"></td> <tr > <a href="http://www.runescape.com/game.ws?j=1" target="_blank"><center><img src="http://forum.ragezone.com/images/runescape_logo.png" border="0"></center></a> </tr> </tr> </table> </form> <p></body> </html> <?php echo'<table width="200" border="2" align="center" bgcolor="#666666" align="left">'; if (!isset($_POST['username'])) { echo'<tr><td>'; die("Search a user"); echo '</td></tr>'; } $user = $_POST['username'];//'green098';//user if ($_POST['username']) { $file = trim(@file_get_contents('http://hiscore.runescape.com/index_lite.ws?player='.$user));//Runescape high scores $stats = explode(",",$file); if(!isset($stats [1])) { echo'<tr><td>'; die('User not found'); echo '</td></tr>'; } $checkRanked = $stats[0]; if($stats[0] != '-1') { echo'<tr><td>'; echo('Rank: '.$stats[0].'<br>');//Prints rank echo '</td></tr>'; } else { echo'<tr><td>'; echo('Rank: Not Ranked<br>'); echo '</td></tr>'; } echo'<tr><td>'; echo('Total Level: '.$stats[1].'<br>'); echo '</td></tr>'; $totalExp = $stats[2];//convert to string $totalExpSp = preg_split('/\s+/', $totalExp); echo'<tr><td>'; echo('Total Exp: '.$totalExpSp[0].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Attack: '.$stats[3].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Defance: '.$stats[7].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Constitution: '.$stats[9].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Ranged: '.$stats[11].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Prayer: '.$stats[13].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Magic: '.$stats[15].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Cooking: '.$stats[17].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Woodcutting: '.$stats[19].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Fletching: '.$stats[21].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Fishing: '.$stats[23].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Firemaking: '.$stats[25].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Crafting: '.$stats[27].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Smithing: '.$stats[29].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Mining: '.$stats[31].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Herblore: '.$stats[33].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Agility: '.$stats[35].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Thieving: '.$stats[37].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Slayer: '.$stats[39].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Farming: '.$stats[41].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Runecrafting: '.$stats[43].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Hunter: '.$stats[45].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Construction: '.$stats[47].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Summoning: '.$stats[49].'<br>'); echo '</td></tr>'; echo'<tr><td>'; echo('Dungeoneering: '.$stats[51].'<br>'); echo '</td></tr>'; } else { echo('Search for a user'); } echo'</table>'; ?>
  7. Just figured it out lol thanks anyways. I added this to my code. filter:alpha(opacity=70)
  8. I have this table in my header I would like to be at about 70% opacity, but dont even know where to start, how would I incert it into this code: .leftmenu { margin-left: 8px; background-color : #666666; border : 1px solid <?= $color[2] ?>; color : <?= $color[3] ?>; display : block; padding-top : 2px; padding-right : 2px; padding-bottom : 2px; padding-left : 2px; border-style : solid; border-top-width : 0; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px; width : 145px; font-weight : normal; text-align : left; }
  9. I get this: Fatal error: Call to undefined function: date_default_timezone_set() in /home/www/acl.awardspace.biz/spheader.php on line 70
  10. Sorry I'm still learning, how would that look? Like this? $time = date(F." ".d.", ".Y." ".g.":".i.":".date_default_timezone_set());
  11. I am using this line to get the date and time $time = date(F." ".d.", ".Y." ".g.":".i.":".sa,time()); How could I change this to my time zone here in California, USA?
  12. Ok, I have no idea how I can do this so I am hoping you can point me in the right direction. In my database I have a line in my users table called admin. In this 0 means they are a normal user, and 1 means they are an admin. Is there any way to edit my code posted below to show only normal users, I want it to show only ones with 0 in the admin line, then I need to be able to show only admins, so only people with a 1 in the admin line. This code displays all of my users: <tr><td class="contenthead">.: List of students registered</td></tr> <tr><td class="contentcontent"> <table width='100%'> <tr> <td>Name</td> <td align='center'>Online</td> </tr> <? $view = ($_GET['view'] != "") ? $_GET['view'] : 'admin'; $result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `".$view."` DESC LIMIT 500"); $rank = 0; while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $rank++; $user_hall = new User($line['id']); ?> <tr> <td><?= $user_hall->formattedname ?></td> <td><?= $user_hall->formattedonline ?></td> </tr> <? } ?> </td></tr>
  13. Its doubling my header so I took out a bunch of stuff however, it is putting my whole page inside the table on my race.php page. I think I might be able to take it from here. Thank you so much for the help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.