searls03 Posted April 3, 2011 Share Posted April 3, 2011 ok, I have been lookin at this for a while now..........the first picture shows what is doing........the second is what I want it to do............ here is code from page where the thing isn't working: Apdiv 300 is the issue.....I think part of the problem is css having multiple entries........... <?php session_start(); // Must start session first thing /* Created By Adam Khoury @ www.flashbuilding.com -----------------------June 20, 2008----------------------- */ // Here we run a login check if (!isset($_SESSION['id'])) { echo 'Please <a href="login.php">log in</a> to access your account'; exit(); } //Connect to the database through our include include_once "connect_to_mysql.php"; // Place Session variable 'id' into local variable $userid = $_SESSION['id']; // Query member data from the database and ready it for display $sql = mysql_query("SELECT * FROM members WHERE userid='$userid' LIMIT 1"); while($row = mysql_fetch_array($sql)){ $name = $row["name"]; $phone = $row["phone"]; $username = $row["username"]; $address = $row["address"]; $city = $row["city"]; $state = $row["state"]; $zip = $row["zip"]; $cell = $row["cell"]; $email = $row["email"]; $accounttype = $row["accounttype"]; $rank = $row["rank"]; $badges = $row["badges"]; } $query = "SELECT event, description, startdate, enddate, location, subevent1, subevent2, subevent3, subevent4, subevent5, subevent6, subevent7, subevent8, price1, price2, price3, price4, price5, price6, price7, price8 FROM Registration WHERE eventid=".$_GET['eventid']; $result = mysql_query($query) or die('Error : ' . mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); $startdate = $row['startdate']; $enddate = $row['enddate']; $location = $row['location']; $description = $row['description']; $event= $row["event"]; $subevent1 = $row['subevent1']; $subevent2 = $row['subevent2']; $subevent3 = $row['subevent3']; $subevent4 = $row['subevent4']; $subevent5 = $row['subevent5']; $subevent6 = $row['subevent6']; $subevent7 = $row['subevent7']; $subevent8 = $row['subevent8']; $title1 = $row['title1']; $title2 = $row['title2']; $title3 = $row['title3']; $title4 = $row['title4']; $title5 = $row['title5']; $title6 = $row['title6']; $title7 = $row['title7']; $title8 = $row['title8']; $price1 = $row['price1']; $price2 = $row['price2']; $price3 = $row['price3']; $price4 = $row['price4']; $price5 = $row['price5']; $price6 = $row['price6']; $price7 = $row['price7']; $price8 = $row['price8']; $date1 = $row['date1']; $date2 = $row['date2']; $date3 = $row['date3']; $date4 = $row['date4']; $date5 = $row['date5']; $date6 = $row['date6']; $date7 = $row['date7']; $date8 = $row['date8']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template2.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>View Event---Boy Scout Troop 78</title> <!-- InstanceEndEditable --> <style type="text/css"> #apDiv1 { position:absolute; left:33px; top:320px; width:252px; height:48px; z-index:1; } #apDiv2 { position:absolute; left:21px; top:361px; width:254px; height:46px; z-index:2; } #apDiv3 { position:absolute; left:21px; top:525px; width:256px; height:43px; z-index:0; } #apDiv4 { position:absolute; left:21px; top:402px; width:250px; height:48px; z-index:4; } #apDiv5 { position:absolute; left:94px; top:616px; width:263px; height:64px; z-index:5; } #apDiv100 { position:relative; left:-2px; top:260px; width:1293px; height:51px; z-index:1; text-align: center; clear: none; float: none; } #apDiv7 { position:absolute; left:21px; top:443px; width:266px; height:42px; z-index:6; } #apDiv8 { position:absolute; left:111px; top:500px; width:125px; height:37px; z-index:7; } #apDiv8 strong { font-size: 24px; } #apDiv9 { position:absolute; left:33px; top:408px; width:267px; height:49px; z-index:8; } #apDiv10 { position:absolute; left:33px; top:449px; width:242px; height:23px; z-index:9; } #apDiv8 a { color: #000; } #apDiv11 { position:absolute; left:89px; top:490px; width:168px; height:42px; z-index:13; font-size: 24px; font-weight: bold; } #apDiv11 a { color: #000; } #apDiv12 { position:absolute; left:0px; top:162px; width:205px; height:135px; z-index:11; } #apDiv12 { text-align: center; } #apDiv13 { position:absolute; left:21px; top:320px; width:258px; height:47px; z-index:12; } #apDiv { position:absolute; left:21px; top:484px; width:225px; height:35px; z-index:11; } #apDiv14 { position:absolute; left:21px; top:566px; width:298px; height:51px; z-index:12; } #apDiv15 { position:absolute; left:101px; top:611px; width:168px; height:42px; z-index:10; font-size: 24px; font-weight: bold; } #apDiv5 a { font-size: 24px; color: #000; font-weight: bold; } #apDiv16 { position:absolute; left:10px; top:191px; width:272px; height:540px; z-index:0; background-color: #FF0000; } body { background-image: url(button/boyscout1.png); background-repeat: no-repeat; position: relative; } #apDiv17 { position:absolute; left:-1px; top:175px; width:1192px; height:43px; z-index:14; } #apDiv17 #MenuBar1 li a { background-color: #000; color: #FFF; border-top-style: outset; border-right-style: outset; border-bottom-style: outset; border-left-style: outset; position: relative; width: 125px; } #apDiv300 #MenuBar1 li a { color: #000; border-top-style: outset; border-right-style: outset; border-bottom-style: outset; border-left-style: outset; position: relative; cursor: default; filter: Invert; page-break-after: always; width: 100px; } #apDiv18 { position:absolute; left:19px; top:93px; width:267px; height:110px; z-index:14; } #apDiv19 { position:absolute; left:200px; top:140px; width:142px; height:31px; z-index:14; } #apDiv20 { position:absolute; left:160px; top:147px; width:124px; height:44px; z-index:14; } #apDiv21 { position:absolute; left:98px; top:134px; width:93px; height:44px; z-index:14; } #apDiv22 { position:absolute; left:137px; top:135px; width:103px; height:41px; z-index:14; } #apDiv23 { position:absolute; left:213px; top:90px; width:99px; height:39px; z-index:14; } #apDiv24 { position:absolute; left:345px; top:94px; width:111px; height:29px; z-index:15; } #apDiv25 { position:absolute; left:100px; top:50px; width:141px; height:70px; z-index:14; } #apDiv26 { position:absolute; left:315px; top:59px; width:205px; height:76px; z-index:15; } #apDiv27 { position:absolute; left:297px; top:168px; width:109px; height:26px; z-index:16; } #apDiv28 { position:absolute; left:134px; top:169px; width:123px; height:37px; z-index:17; } #apDiv29 { position:absolute; left:386px; top:161px; width:134px; height:35px; z-index:18; } #apDiv300 { position:absolute; left:160px; top:177px; width:931px; height:59px; z-index:19; } #apDiv200 { position:absolute; left:16px; top:180px; width:124px; height:44px; z-index:14; } } #apDiv31 p { text-align: center; } #apDiv31 { text-align: center; } #apDiv30 #MenuBar1 li a { text-align: left; width: 100px; } #apDiv30 #MenuBar1 li ab { width: 120px; } </style> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script type="text/javascript"> function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> #apDiv45 { position:absolute; left:444px; top:6px; width:375px; height:46px; z-index:21; } </style> <!-- InstanceEndEditable --> <!-- InstanceParam name="id" type="text" value="apDiv6" --> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <style type="text/css"> #apDiv32 { position:absolute; left:1099px; top:186px; width:134px; height:38px; z-index:20; font-weight: bold; font-size: 24px; } #apDiv32 a { color: #000; } #apDiv33 { position:absolute; left:1px; top:332px; width:1304px; height:184px; z-index:0; background-color: #000000; color: #FFF; } #apDiv34 { position:absolute; left:149px; top:364px; width:190px; height:61px; z-index:22; color: #FFF; text-align: center; } .fas { color: #00C; } #apDiv34 .fas a { color: #FFF; } .adf { color: #000; } .adsf { color: #FFF; } adf { color: #0CF; } dasf { color: #99C; } dsaf { color: #C03; } dasdfsafasf { color: #9F3; } #apDiv34 aa { color: #9C0; } a:link { color: #00F; } #apDiv35 { position:absolute; left:362px; top:364px; width:157px; height:106px; z-index:23; color: #FFF; text-align: center; } #apDiv36 { position:absolute; left:-1px; top:295px; width:1293px; height:182px; z-index:21; background-color: #000000; } #apDiv37 { position:absolute; left:298px; top:315px; width:138px; height:122px; z-index:22; color: #FFF; text-align: center; } #apDiv38 { position:relative; width:1286px; height:113px; float: right; margin: 0px; padding: 0px; clear: none; color: #000; background-color: #000000; } #apDiv39 { position:static; left:418px; top:333px; width:448px; height:106px; z-index:21; background-color: #000000; } #apDiv40 { position:fixed; left:493px; top:312px; width:285px; height:68px; z-index:21; background-color: #000000; clear: both; float: right; } #apDiv41 { position:absolute; left:0px; top:514px; width:1290px; height:112px; z-index:21; clear: both; } #apDiv42 { position: left:3px; top:394px; width:732px; height:139px; z-index:21; background-color: #000000; clear: both; float: right; } #apDiv43 { position:relative; width:385px; height:214px; z-index:21; background-color: #000000; visibility: inherit; clear: both; } #apDiv44 { position:absolute; left:98px; top:512px; width:239px; height:70px; z-index:21; clear: both; float: none; } #apDiv200 { text-align: center; } </style> </head> <body> <div id="apDiv200"><?php echo "$accounttype"; ?> <br /><?php echo "$name"; ?> <p> </p> </div> <div id="apDiv100"><!-- InstanceBeginEditable name="EditRegion3" --> <div id="apDiv45"> <?php // when displaying an article show a link // to see the article list if(isset($_GET['eventid'])) { ?> <div id="apDiv26 " > <p>Date(s): <?php echo $startdate; ?><span class="klgjsa"> -</span> <?php echo $enddate; ?><br /> <span class="fgsdfg">Location:</span> <?php echo $location; ?><br /> <span class="adfasdf">Description</span><span class="adfdas">:</span><?php echo $description; ?> </p> <p> </p> <table width="577" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="565" bgcolor="#999999" class="hjkh" scope="col">EVENTS</td> </tr> <tr> <td bgcolor="#999999" class="hjkh" scope="col"><table width="572" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="90" bgcolor="#FFFFFF" scope="col"><?php $sql = mysql_query("SELECT * FROM Registration WHERE eventid=".$_GET['eventid']." LIMIT 1"); while($row = mysql_fetch_array($sql)){ $event= $row["event"]; $subevent1 = $row['subevent1']; $subevent2 = $row['subevent2']; $subevent3 = $row['subevent3']; $subevent4 = $row['subevent4']; $subevent5 = $row['subevent5']; $subevent6 = $row['subevent6']; $subevent7 = $row['subevent7']; $subevent8 = $row['subevent8']; $title1 = $row['title1']; $title2 = $row['title2']; $title3 = $row['title3']; $title4 = $row['title4']; $title5 = $row['title5']; $title6 = $row['title6']; $title7 = $row['title7']; $title8 = $row['title8']; $price1 = $row['price1']; $price2 = $row['price2']; $price3 = $row['price3']; $price4 = $row['price4']; $price5 = $row['price5']; $price6 = $row['price6']; $price7 = $row['price7']; $price8 = $row['price8']; $date1 = $row['date1']; $date2 = $row['date2']; $date3 = $row['date3']; $date4 = $row['date4']; $date5 = $row['date5']; $date6 = $row['date6']; $date7 = $row['date7']; $date8 = $row['date8']; //this will echo the contents of each db row as they are iterated in the loop ############################# if (!empty($subevent1)) { echo "<br/><strong>$title1</strong><br />$date1<br />$ $price1<br /><br />"; } if (!empty($subevent2)) { echo "<br/><strong>$title2</strong><br />$date2<br />$ $price2<br /><br />"; } if (!empty($subevent3)) { echo "<br/><strong>$title3</strong><br />$date3<br />$ $price3<br /><br />"; } if (!empty($subevent4)) { echo "<br/><strong>$title4</strong><br />$date4<br />$ $price4<br /><br />"; } if (!empty($subevent5)) { echo "<br/><strong>$title5</strong><br />$date5<br />$ $price5<br /><br />"; } if (!empty($subevent6)) { echo "<br/><strong>$title6</strong><br />$date6<br />$ $price6<br /><br />"; } if (!empty($subevent7)) { echo "<br/><strong>$title7</strong><br />$date7<br />$ $price7<br /><br />"; } if (!empty($subevent8)) { echo "<br/><strong>$title8</strong><br />$date8<br />$ $price8"; } } //etc etc ?></td> <td width="462" bgcolor="#FFFFFF" scope="col"> </td> </tr> </table></td> </tr> </table> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="31" scope="col"><?php if (isset($_GET['eventid'])) { include('connect1.php'); $sql = "SELECT eventid FROM Registration WHERE eventid=".$_GET['eventid']." LIMIT 1"; $result = mysqli_query($dbcon, $sql) or die('error getting data'); echo "<table>"; $row = mysqli_fetch_array($result, MYSQLI_ASSOC); echo "<tr><td>"; echo "<form action='registration.php' method='get'><input type='hidden' name='eventid' value='{$row['eventid']}'><INPUT TYPE='submit' name='submit' VALUE='Register'></form>\n"; echo "</td></tr>"; echo "</table>"; } ?></td> </tr> </table> <p> </p> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> </tr> </table> </div> <?php } ?> </div> <!-- InstanceEndEditable --> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><br /> </p> </div> <div id="apDiv300"> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="myprofile.php">My Profile</a> </li> <li><a href="register.php">Register</a></li> <li><a href="projects.php">Projects</a> </li> <li><a href="news.php">News</a></li> <?php if ($accounttype == "Admin") { ?> <li><a href="membermanager.php">Scout Manager</a></li> <li><a href="eventmanager.php">Event Manager</a></li> <li><a href="newsmanager.php">News Manager</a></li> </ul> </div> <div id="apDiv32"><a href="logout.php">Logout</a><?php } ?></div> <div id="apDiv44"> <table width="200" border="1" cellspacing="2" cellpadding="2"> <tr> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> </tr> </table> </div> <script type="text/javascript"> var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"}); </script> </body> <!-- InstanceEnd --></html> Here is code from the template: <?php // Query member data from the database and ready it for display $sql = mysql_query("SELECT * FROM members WHERE id='$id' LIMIT 1"); while($row = mysql_fetch_array($sql)){ $name = $row["name"]; $phone = $row["phone"]; $username = $row["username"]; $address = $row["address"]; $city = $row["city"]; $state = $row["state"]; $zip = $row["zip"]; $cell = $row["cell"]; $email = $row["email"]; $accounttype = $row["accounttype"]; $rank = $row["rank"]; $badges = $row["badges"]; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- TemplateBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- TemplateEndEditable --> <style type="text/css"> #apDiv1 { position:absolute; left:33px; top:320px; width:252px; height:48px; z-index:1; } #apDiv2 { position:absolute; left:21px; top:361px; width:254px; height:46px; z-index:2; } #apDiv3 { position:absolute; left:21px; top:525px; width:256px; height:43px; z-index:0; } #apDiv4 { position:absolute; left:21px; top:402px; width:250px; height:48px; z-index:4; } #apDiv5 { position:absolute; left:94px; top:616px; width:263px; height:64px; z-index:5; } #apDiv100 { position:relative; left:-2px; top:260px; width:1293px; height:51px; z-index:1; text-align: center; clear: none; float: none; } #apDiv7 { position:absolute; left:21px; top:443px; width:266px; height:42px; z-index:6; } #apDiv8 { position:absolute; left:111px; top:500px; width:125px; height:37px; z-index:7; } #apDiv8 strong { font-size: 24px; } #apDiv9 { position:absolute; left:33px; top:408px; width:267px; height:49px; z-index:8; } #apDiv10 { position:absolute; left:33px; top:449px; width:242px; height:23px; z-index:9; } #apDiv8 a { color: #000; } #apDiv11 { position:absolute; left:89px; top:490px; width:168px; height:42px; z-index:13; font-size: 24px; font-weight: bold; } #apDiv11 a { color: #000; } #apDiv12 { position:absolute; left:0px; top:162px; width:205px; height:135px; z-index:11; } #apDiv12 { text-align: center; } #apDiv13 { position:absolute; left:21px; top:320px; width:258px; height:47px; z-index:12; } #apDiv { position:absolute; left:21px; top:484px; width:225px; height:35px; z-index:11; } #apDiv14 { position:absolute; left:21px; top:566px; width:298px; height:51px; z-index:12; } #apDiv15 { position:absolute; left:101px; top:611px; width:168px; height:42px; z-index:10; font-size: 24px; font-weight: bold; } #apDiv5 a { font-size: 24px; color: #000; font-weight: bold; } #apDiv16 { position:absolute; left:10px; top:191px; width:272px; height:540px; z-index:0; background-color: #FF0000; } body { background-image: url(../button/boyscout1.png); background-repeat: no-repeat; position: relative; } #apDiv17 { position:absolute; left:-1px; top:175px; width:1192px; height:43px; z-index:14; } #apDiv17 #MenuBar1 li a { background-color: #000; color: #FFF; border-top-style: outset; border-right-style: outset; border-bottom-style: outset; border-left-style: outset; position: relative; width: 125px; } #apDiv300 #MenuBar1 li a { color: #000; border-top-style: outset; border-right-style: outset; border-bottom-style: outset; border-left-style: outset; position: relative; cursor: default; filter: Invert; page-break-after: always; width: 100px; } #apDiv18 { position:absolute; left:19px; top:93px; width:267px; height:110px; z-index:14; } #apDiv19 { position:absolute; left:200px; top:140px; width:142px; height:31px; z-index:14; } #apDiv20 { position:absolute; left:160px; top:147px; width:124px; height:44px; z-index:14; } #apDiv21 { position:absolute; left:98px; top:134px; width:93px; height:44px; z-index:14; } #apDiv22 { position:absolute; left:137px; top:135px; width:103px; height:41px; z-index:14; } #apDiv23 { position:absolute; left:213px; top:90px; width:99px; height:39px; z-index:14; } #apDiv24 { position:absolute; left:345px; top:94px; width:111px; height:29px; z-index:15; } #apDiv25 { position:absolute; left:100px; top:50px; width:141px; height:70px; z-index:14; } #apDiv26 { position:absolute; left:315px; top:59px; width:205px; height:76px; z-index:15; } #apDiv27 { position:absolute; left:297px; top:168px; width:109px; height:26px; z-index:16; } #apDiv28 { position:absolute; left:134px; top:169px; width:123px; height:37px; z-index:17; } #apDiv29 { position:absolute; left:386px; top:161px; width:134px; height:35px; z-index:18; } #apDiv300 { position:absolute; left:160px; top:177px; width:931px; height:59px; z-index:19; } #apDiv200 { position:absolute; left:16px; top:180px; width:124px; height:44px; z-index:14; } } #apDiv31 p { text-align: center; } #apDiv31 { text-align: center; } #apDiv30 #MenuBar1 li a { text-align: left; width: 100px; } #apDiv30 #MenuBar1 li ab { width: 120px; } </style> <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script type="text/javascript"> function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <!-- TemplateParam name="id" type="text" value="apDiv6" --> <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <style type="text/css"> #apDiv32 { position:absolute; left:1099px; top:186px; width:134px; height:38px; z-index:20; font-weight: bold; font-size: 24px; } #apDiv32 a { color: #000; } #apDiv33 { position:absolute; left:1px; top:332px; width:1304px; height:184px; z-index:0; background-color: #000000; color: #FFF; } #apDiv34 { position:absolute; left:149px; top:364px; width:190px; height:61px; z-index:22; color: #FFF; text-align: center; } .fas { color: #00C; } #apDiv34 .fas a { color: #FFF; } .adf { color: #000; } .adsf { color: #FFF; } adf { color: #0CF; } dasf { color: #99C; } dsaf { color: #C03; } dasdfsafasf { color: #9F3; } #apDiv34 aa { color: #9C0; } a:link { color: #00F; } #apDiv35 { position:absolute; left:362px; top:364px; width:157px; height:106px; z-index:23; color: #FFF; text-align: center; } #apDiv36 { position:absolute; left:-1px; top:295px; width:1293px; height:182px; z-index:21; background-color: #000000; } #apDiv37 { position:absolute; left:298px; top:315px; width:138px; height:122px; z-index:22; color: #FFF; text-align: center; } #apDiv38 { position:relative; width:1286px; height:113px; float: right; margin: 0px; padding: 0px; clear: none; color: #000; background-color: #000000; } #apDiv39 { position:static; left:418px; top:333px; width:448px; height:106px; z-index:21; background-color: #000000; } #apDiv40 { position:fixed; left:493px; top:312px; width:285px; height:68px; z-index:21; background-color: #000000; clear: both; float: right; } #apDiv41 { position:absolute; left:0px; top:514px; width:1290px; height:112px; z-index:21; clear: both; } #apDiv42 { position: left:3px; top:394px; width:732px; height:139px; z-index:21; background-color: #000000; clear: both; float: right; } #apDiv43 { position:relative; width:385px; height:214px; z-index:21; background-color: #000000; visibility: inherit; clear: both; } #apDiv44 { position:absolute; left:98px; top:512px; width:239px; height:70px; z-index:21; clear: both; float: none; } #apDiv200 { text-align: center; } </style> </head> <body> <div id="apDiv200"><?php echo "$accounttype"; ?> <br /><?php echo "$name"; ?> <p> </p> </div> <div id="apDiv100"><!-- TemplateBeginEditable name="EditRegion3" -->EditRegion3<!-- TemplateEndEditable --> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><br /> </p> </div> <div id="apDiv300"> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="../myprofile.php">My Profile</a> </li> <li><a href="../register.php">Register</a></li> <li><a href="../projects.php">Projects</a> </li> <li><a href="../news.php">News</a></li> <?php if ($accounttype == "Admin") { ?> <li><a href="../membermanager.php">Scout Manager</a></li> <li><a href="../eventmanager.php">Event Manager</a></li> <li><a href="../newsmanager.php">News Manager</a></li> </ul> </div> <div id="apDiv32"><a href="../logout.php">Logout</a><?php } ?></div> <div id="apDiv44"> <table width="200" border="1" cellspacing="2" cellpadding="2"> <tr> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> </tr> </table> </div> <script type="text/javascript"> var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"}); </script> </body> </html> [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
searls03 Posted April 3, 2011 Author Share Posted April 3, 2011 images still valid......code not I have updated code with no extra css and changed all to custom name........................ Problem: <?php session_start(); // Must start session first thing /* Created By Adam Khoury @ www.flashbuilding.com -----------------------June 20, 2008----------------------- */ // Here we run a login check if (!isset($_SESSION['id'])) { echo 'Please <a href="login.php">log in</a> to access your account'; exit(); } //Connect to the database through our include include_once "connect_to_mysql.php"; // Place Session variable 'id' into local variable $userid = $_SESSION['id']; // Query member data from the database and ready it for display $sql = mysql_query("SELECT * FROM members WHERE userid='$userid' LIMIT 1"); while($row = mysql_fetch_array($sql)){ $name = $row["name"]; $phone = $row["phone"]; $username = $row["username"]; $address = $row["address"]; $city = $row["city"]; $state = $row["state"]; $zip = $row["zip"]; $cell = $row["cell"]; $email = $row["email"]; $accounttype = $row["accounttype"]; $rank = $row["rank"]; $badges = $row["badges"]; } $query = "SELECT event, description, startdate, enddate, location, subevent1, subevent2, subevent3, subevent4, subevent5, subevent6, subevent7, subevent8, price1, price2, price3, price4, price5, price6, price7, price8 FROM Registration WHERE eventid=".$_GET['eventid']; $result = mysql_query($query) or die('Error : ' . mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); $startdate = $row['startdate']; $enddate = $row['enddate']; $location = $row['location']; $description = $row['description']; $event= $row["event"]; $subevent1 = $row['subevent1']; $subevent2 = $row['subevent2']; $subevent3 = $row['subevent3']; $subevent4 = $row['subevent4']; $subevent5 = $row['subevent5']; $subevent6 = $row['subevent6']; $subevent7 = $row['subevent7']; $subevent8 = $row['subevent8']; $title1 = $row['title1']; $title2 = $row['title2']; $title3 = $row['title3']; $title4 = $row['title4']; $title5 = $row['title5']; $title6 = $row['title6']; $title7 = $row['title7']; $title8 = $row['title8']; $price1 = $row['price1']; $price2 = $row['price2']; $price3 = $row['price3']; $price4 = $row['price4']; $price5 = $row['price5']; $price6 = $row['price6']; $price7 = $row['price7']; $price8 = $row['price8']; $date1 = $row['date1']; $date2 = $row['date2']; $date3 = $row['date3']; $date4 = $row['date4']; $date5 = $row['date5']; $date6 = $row['date6']; $date7 = $row['date7']; $date8 = $row['date8']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>View Event---Boy Scout Troop 78</title> <style type="text/css"> #editregion { position:relative; left:-2px; top:260px; width:1293px; height:51px; z-index:1; text-align: center; clear: none; float: none; } body { background-image: url(button/boyscout1.png); background-repeat: no-repeat; position: relative; } #menu #MenuBar1 li a { color: #000; border-top-style: outset; border-right-style: outset; border-bottom-style: outset; border-left-style: outset; position: relative; cursor: default; filter: Invert; page-break-after: always; width: 100px; } #info { position:absolute; left:315px; top:59px; width:205px; height:76px; z-index:15; } #menu { position:absolute; left:160px; top:177px; width:931px; height:59px; z-index:19; } #status { position:absolute; left:16px; top:180px; width:124px; height:44px; z-index:14; } </style> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script type="text/javascript"> function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script> <style type="text/css"> #event { position:absolute; left:444px; top:6px; width:375px; height:46px; z-index:21; } </style> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <style type="text/css"> #logout { position:absolute; left:1099px; top:186px; width:134px; height:38px; z-index:20; font-weight: bold; font-size: 24px; } #logout a { color: #000; } } #footer { position:absolute; left:98px; top:512px; width:239px; height:70px; z-index:21; clear: both; float: none; } #status { text-align: center; } </style> </head> <body> <div id="status"><?php echo "$accounttype"; ?> <br /><?php echo "$name"; ?> <p> </p> </div> <div id="editregion"> <div id="event"> <?php // when displaying an article show a link // to see the article list if(isset($_GET['eventid'])) { ?> <div id="info " > <p>Date(s): <?php echo $startdate; ?><span class="klgjsa"> -</span> <?php echo $enddate; ?><br /> <span class="fgsdfg">Location:</span> <?php echo $location; ?><br /> <span class="adfasdf">Description</span><span class="adfdas">:</span><?php echo $description; ?> </p> <p> </p> <table width="577" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="565" bgcolor="#999999" class="hjkh" scope="col">EVENTS</td> </tr> <tr> <td bgcolor="#999999" class="hjkh" scope="col"><table width="572" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="90" bgcolor="#FFFFFF" scope="col"><?php $sql = mysql_query("SELECT * FROM Registration WHERE eventid=".$_GET['eventid']." LIMIT 1"); while($row = mysql_fetch_array($sql)){ $event= $row["event"]; $subevent1 = $row['subevent1']; $subevent2 = $row['subevent2']; $subevent3 = $row['subevent3']; $subevent4 = $row['subevent4']; $subevent5 = $row['subevent5']; $subevent6 = $row['subevent6']; $subevent7 = $row['subevent7']; $subevent8 = $row['subevent8']; $title1 = $row['title1']; $title2 = $row['title2']; $title3 = $row['title3']; $title4 = $row['title4']; $title5 = $row['title5']; $title6 = $row['title6']; $title7 = $row['title7']; $title8 = $row['title8']; $price1 = $row['price1']; $price2 = $row['price2']; $price3 = $row['price3']; $price4 = $row['price4']; $price5 = $row['price5']; $price6 = $row['price6']; $price7 = $row['price7']; $price8 = $row['price8']; $date1 = $row['date1']; $date2 = $row['date2']; $date3 = $row['date3']; $date4 = $row['date4']; $date5 = $row['date5']; $date6 = $row['date6']; $date7 = $row['date7']; $date8 = $row['date8']; //this will echo the contents of each db row as they are iterated in the loop ############################# if (!empty($subevent1)) { echo "<br/><strong>$title1</strong><br />$date1<br />$ $price1<br /><br />"; } if (!empty($subevent2)) { echo "<br/><strong>$title2</strong><br />$date2<br />$ $price2<br /><br />"; } if (!empty($subevent3)) { echo "<br/><strong>$title3</strong><br />$date3<br />$ $price3<br /><br />"; } if (!empty($subevent4)) { echo "<br/><strong>$title4</strong><br />$date4<br />$ $price4<br /><br />"; } if (!empty($subevent5)) { echo "<br/><strong>$title5</strong><br />$date5<br />$ $price5<br /><br />"; } if (!empty($subevent6)) { echo "<br/><strong>$title6</strong><br />$date6<br />$ $price6<br /><br />"; } if (!empty($subevent7)) { echo "<br/><strong>$title7</strong><br />$date7<br />$ $price7<br /><br />"; } if (!empty($subevent8)) { echo "<br/><strong>$title8</strong><br />$date8<br />$ $price8"; } } //etc etc ?></td> <td width="462" bgcolor="#FFFFFF" scope="col"> </td> </tr> </table></td> </tr> </table> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="31" scope="col"><?php if (isset($_GET['eventid'])) { include('connect1.php'); $sql = "SELECT eventid FROM Registration WHERE eventid=".$_GET['eventid']." LIMIT 1"; $result = mysqli_query($dbcon, $sql) or die('error getting data'); echo "<table>"; $row = mysqli_fetch_array($result, MYSQLI_ASSOC); echo "<tr><td>"; echo "<form action='registration.php' method='get'><input type='hidden' name='eventid' value='{$row['eventid']}'><INPUT TYPE='submit' name='submit' VALUE='Register'></form>\n"; echo "</td></tr>"; echo "</table>"; } ?></td> </tr> </table> <p> </p> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> </tr> </table> </div> <?php } ?> </div> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><br /> </p> </div> <div id="menu"> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="myprofile.php">My Profile</a> </li> <li><a href="register.php">Register</a></li> <li><a href="projects.php">Projects</a> </li> <li><a href="news.php">News</a></li> <?php if ($accounttype == "Admin") { ?> <li><a href="membermanager.php">Scout Manager</a></li> <li><a href="eventmanager.php">Event Manager</a></li> <li><a href="newsmanager.php">News Manager</a></li> </ul> </div> <div id="logout"><a href="logout.php">Logout</a><?php } ?></div> <script type="text/javascript"> var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"}); </script> </body> </html> proper: <?php // Query member data from the database and ready it for display $sql = mysql_query("SELECT * FROM members WHERE id='$id' LIMIT 1"); while($row = mysql_fetch_array($sql)){ $name = $row["name"]; $phone = $row["phone"]; $username = $row["username"]; $address = $row["address"]; $city = $row["city"]; $state = $row["state"]; $zip = $row["zip"]; $cell = $row["cell"]; $email = $row["email"]; $accounttype = $row["accounttype"]; $rank = $row["rank"]; $badges = $row["badges"]; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- TemplateBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- TemplateEndEditable --> <style type="text/css"> #editregion { position:relative; left:-2px; top:260px; width:1293px; height:51px; z-index:1; text-align: center; clear: none; float: none; } body { background-image: url(../button/boyscout1.png); background-repeat: no-repeat; position: relative; } #menu #MenuBar1 li a { color: #000; border-top-style: outset; border-right-style: outset; border-bottom-style: outset; border-left-style: outset; position: relative; cursor: default; filter: Invert; page-break-after: always; width: 100px; } #menu { position:absolute; left:160px; top:177px; width:931px; height:59px; z-index:19; } #status { position:absolute; left:16px; top:180px; width:124px; height:44px; z-index:14; } </style> <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script type="text/javascript"> function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } </script> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <!-- TemplateParam name="id" type="text" value="apDiv6" --> <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <style type="text/css"> #logout { position:absolute; left:1099px; top:186px; width:134px; height:38px; z-index:20; font-weight: bold; font-size: 24px; } #logout a { color: #000; } #footer { position:absolute; left:98px; top:512px; width:239px; height:70px; z-index:21; clear: both; float: none; } #status { text-align: center; } </style> </head> <body> <div id="status"><?php echo "$accounttype"; ?> <br /><?php echo "$name"; ?> <p> </p> </div> <div id="editregion"><!-- TemplateBeginEditable name="EditRegion3" -->EditRegion3<!-- TemplateEndEditable --> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><br /> </p> </div> <div id="menu"> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="../myprofile.php">My Profile</a> </li> <li><a href="../register.php">Register</a></li> <li><a href="../projects.php">Projects</a> </li> <li><a href="../news.php">News</a></li> <?php if ($accounttype == "Admin") { ?> <li><a href="../membermanager.php">Scout Manager</a></li> <li><a href="../eventmanager.php">Event Manager</a></li> <li><a href="../newsmanager.php">News Manager</a></li> </ul> </div> <div id="logout"><a href="../logout.php">Logout</a><?php } ?></div> <div id="footer"> <table width="200" border="1" cellspacing="2" cellpadding="2"> <tr> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> </tr> </table> </div> <script type="text/javascript"> var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"}); </script> </body> </html> Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted April 3, 2011 Share Posted April 3, 2011 maybe have an online example? you are showing us a a serverside script. html css are client side. Quote Link to comment Share on other sites More sharing options...
stevengreen22 Posted April 8, 2011 Share Posted April 8, 2011 Dude, I don't knwo if it's of any help to you but I've had a play around with the WI script. Some of the issues I had during testing for the php was the names of the data and slight mistypes. I ran a find / replace on on some key parts and solved it. It may have no bearing on what you're doing ut figured it's worth a mention. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.