Jump to content

Clinton

Members
  • Posts

    337
  • Joined

  • Last visited

Everything posted by Clinton

  1. I just got rid of: "* {padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;}" in the CSS document and the list showed up as Bulleted like it's supposed to. Why did this affect it?
  2. Nothing, huh? Yea, I don't get it either.
  3. The ones underneath "SUMMARY". The text is showing up they are just not being bulleted.
  4. <html> <head> <title>Mr. Blah's General</title> <link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link rel="stylesheet" href="viewresume.css" type="text/css" /> </head> <body> <div id="tail"> <div class="main"> <div id="top"> <div id="logo"> <a href="index.php"><img src="images/logob.png" alt="" /></a> </div> <div class="right"> <div id="topmenuposition"> </div> <div id="topmenu"> <div class="module_s10"> <div> <div> <div> <ul class="menu-nav"> <li class="item60"><a href="index.php"><span><em>Home</em></span></a></li> <li class="item29"><a href="aboutus.php"><span><em>About Us</em></span></a></li> <li class="item54"><a href="resources.php"><span><em>Resources</em></span></a></li> <li class="item55"><a href="press.php"><span><em>Press/Media</em></span></a></li> <li class="item56"><a href="contact.php"><span><em>Contact Us</em></span></a></li></ul> </div> </div> </div> </div> </div> </div> </div> <div id="header"> <div class="bg-right"> <div class="bg-left"> <div class="space"><img src="images/banner.png" alt="" /></div> </div> </div> </div> <div id="breadcrumb"> <div class="module_breadcrumb"> <div> <div> <div> <span class="breadcrumbs pathway"> Your General, Mr. Blah. </span> </div> </div> </div> </div> </div> <div id="wrapper"> <div class="indent"> <div id="right"> <div class="module_menu"> <div class="first"> <div class="sec"> <h3>Mr. Blah</h3> <div class="box-indent"> <div class="width"> <ul class="menu"> <li id="current" class="active item1"><a href="index.php"><span><em>Home</em></span></a></li> <li class="item2"><a href="dmember.php"><span><em>Members Area</em></span></a></li> <li class="item2"><a href="myinfo.php"><span><em>My Info</em></span></a></li> <li class="item2"><a href="aboutus.php"><span><em>About Us</em></span></a></li> <li class="item50"><a href="resources.php"><span><em>Resources</em></span></a></li> <li class="item57"><a href="press.php"><span><em>Press/Media</em></span></a></li> <li class="item58"><a href="press.php"><span><em>Contact Us</em></span></a></li> <li class="item41"><a href="faq.php"><span><em>FAQ</em></span></a></li> <li class="item41"><a href="logout.php"><span><em>Logout</em></span></a></li></ul> </div> </div> </div> </div> </div> </div> <div id="content"> <div class="content-tl"> <div class="content-tr"> <div class="width"> <div id="boxes"> <div id="box1"> <div class="module"> <div class="first"> <div class="sec min-height"> <div class="box-indent"> <div class="width"> SUMMARY: <ul><li>Went to the Market</li><li>Bought 6 Pigs</li><ul><li>Learned I love Bacon</li><li>Went Back to the Market</li><li>Blah, & Blah</li><li>Blah</li></ul><li>Blah </li></ul><p> </p> <ul><li>Went to the Market</li><li>Bought 6 Pigs</li><ul><li>Learned I love Bacon</li><li>Went Back to the Market</li><li>Blah, & Blah</li><li>Blah</li></ul><li>Blah </li></ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="footer"> <div class="bg"> <div class="right-bg"> <div class="left-bg"> <div class="space"> © 2009 </div> </div> </div> </div> </div> </body> </html>
  5. It's all localhost so unfortunately I don't have a link... let me give you my code here... ...like I said, once I remove the stylesheet my list show np. Thanks for looking at this. <?php session_start(); include 'connect/project.htm'; if(($_SESSION['logged_in'] == 1) && ($_SESSION['access_type'] == d)) { $uid = mysql_real_escape_string($_SESSION['user_id']); $rname = ($_GET['rname']); $query = mysql_query("SELECT * FROM dholders WHERE username = '$uid'"); $row = mysql_fetch_assoc($query); extract($row); ?> <html> <head> <title> <?php echo $prefix;?> <?php echo $lname;?>'s <?php echo $rname;?> </title> <link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link rel="stylesheet" href="view.css" type="text/css" /> </head> <body> <div id="tail"> <div class="main"> <div id="top"> <div id="logo"> <a href="index.php"><img src="images/logob.png" alt="" /></a> </div> <div class="right"> <div id="topmenuposition"> </div> <div id="topmenu"> <div class="module_s10"> <div> <div> <div> <ul class="menu-nav"> <li class="item60"><a href="index.php"><span><em>Home</em></span></a></li> <li class="item29"><a href="aboutus.php"><span><em>About Us</em></span></a></li> <li class="item54"><a href="resources.php"><span><em>Resources</em></span></a></li> <li class="item55"><a href="press.php"><span><em>Press/Media</em></span></a></li> <li class="item56"><a href="contact.php"><span><em>Contact Us</em></span></a></li></ul> </div> </div> </div> </div> </div> </div> </div> <div id="header"> <div class="bg-right"> <div class="bg-left"> <div class="space"><img src="images/banner.png" alt="" /></div> </div> </div> </div> <div id="breadcrumb"> <div class="module_breadcrumb"> <div> <div> <div> <span class="breadcrumbs pathway"> Your <?php echo $rname;?> <?php echo $prefix;?> <?php echo $lname;?>. </span> </div> </div> </div> </div> </div> <div id="wrapper"> <div class="indent"> <div id="right"> <?php include 'mmenu.php'; ?> <?php include 'linmenu.php'; ?> </div> <div id="content"> <div class="content-tl"> <div class="content-tr"> <div class="width"> <div id="boxes"> <div id="box1"> <div class="module"> <div class="first"> <div class="sec min-height"> <div class="box-indent"> <div class="width"> <?php $query1 = mysql_query("SELECT * FROM head WHERE did = '$id' AND rname = '$rname'"); $row1 = mysql_fetch_array($query1); ?> <center> <b><?php echo $fname; ?> <?php echo $mname; ?> <?php echo $lname; ?></b><br /> </center> <?php $query1 = mysql_query("SELECT * FROM structure WHERE did = '$id' AND rname = '$rname'"); $row1 = mysql_fetch_array($query1); ?> SUMMARY: <?php echo $row1['sumqual']; ?><p> </p> <ul><li>Went to the Market</li><li>Bought 6 pigs</li><ul><li>Learned I loved Bacon</li><li>Went Back to the Market</li></ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="footer"> <div class="bg"> <div class="right-bg"> <div class="left-bg"> <div class="space"> © 2009 </div> </div> </div> </div> </div> </body> </html> <?php } else {?> <html> <head> <title>10-31</title> <meta http-equiv="refresh" content="2;url=index.php" /> </head> <body> We have a 10-31. Login or face prosecution! </body> </html> <?php } ?>
  6. I don't get it... what is in this code that makes a list not show? I call this document from my page via: <link rel="stylesheet" href="view.css" type="text/css" /> If I remove that I lose some styling but I can see the HTML lists as they are intended. If I add in that style sheet than the HTML lists go away. I don't get it. /* CSS Document */ * {padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;} table {border-collapse:collapse; border:0px; width:100%;} body {text-align:center} td {vertical-align:top} th {text-align:left; vertical-align:top} img {border:none} h2 {font-size:120%} h3 {font-size:110%} h4 {font-size:110%} textarea .inputbox {width:300px; height:100px; margin:0px 0px 5px 0px;} select {height:auto; margin:0px 0px 2px 0px; vertical-align:middle} .width {width:100%} .middle {vertical-align:middle} .main {margin:auto; text-align:left}
  7. Ok, yes, I may be doing that wrong but that's not the answer (I will fix that though). :-) If I remove the first query then the second query works just fine. They don't like each other for some reason and I'm not sure why. Even if they're renamed so they're not identical.
  8. I'm getting an extract error that generally shows up when there are no rows to be fetched. However, I use this same exact query (cut and paste) elsewhere but it just produces an error here. What am I doing wrong? <?php $query1 = mysql_query("SELECT * FROM head WHERE did = '$id' AND rname = '$rname'"); $row1 = mysql_fetch_assoc($query1); extract($row1); ?> <center> <b><?php echo $fname; ?> <?php echo $mname; ?> <?php echo $lname; ?></b><br /> </center> ///The Above Code Works Fine/// <?php $query1 = mysql_query("SELECT * FROM structure WHERE did = '$id' AND rname = '$rname'"); $row1 = mysql_fetch_assoc($query1); extract($row1); /// I'm Getting My Error Here /// ?> EDIT Error just FYI: Warning: extract() [function.extract]: First argument should be an array
  9. Correct, I recall it on each page. That was just an example of how I'm verifying users page to page. Thanks for the notes and information, folks. I'm making the changes while learning and researching at the same time.
  10. Ok, so change my: $username = $_POST['username']; to $username = .mysql_real_escape_string($_POST['username'])
  11. I was wondering if the experts here could look at the below code real quick and see if it's safe and efficient for logging in and calling pages. There are no errors I'm just looking for a security check to see if there is anything that I need to improve upon. Thanks. Login Page: <?php session_start(); session_unset(); include 'connect/project.htm'; if (isset($_POST['login'])) { if($_POST['username']!='' && $_POST['password']!='') {$username = $_POST['username']; $ndate = date ("Y-m-d H:m:s"); $query = mysql_query('SELECT id, username, active, accesstype FROM users WHERE username = "'.mysql_real_escape_string($_POST['username']).'" AND password = "'.mysql_real_escape_string(md5($_POST['password'])).'"'); if(mysql_num_rows($query) == 1) { $row = mysql_fetch_assoc($query); if($row['active'] == NULL) { $_SESSION['user_id'] = $row['username']; $_SESSION['access_type'] = $row['accesstype']; $at = $row['accesstype']; $_SESSION['logged_in'] = TRUE; mysql_query("UPDATE employers SET lastlogin = '$ndate' WHERE username = '$username'"); header("Location: ".$at."member.php"); }else { $error = $_SESSION['activate'] = TRUE; header("Location: index.php"); } } else { $error = 'Login failed !'; $error = $_SESSION['failed'] = TRUE; header("Location: index.php"); } } else { $error = $_SESSION['single'] = TRUE; header("Location: index.php"); } } ?> To verify if one is logged in the following attributes are pretty much asked for on each page: <?php session_start(); include 'connect/project.htm'; if(($_SESSION['logged_in'] == 1) && ($_SESSION['access_type'] == d)) {
  12. I've got a table for places people where people would like to live. A person can list up to 10 places and it stores it as id, place1, place2, etc. Instead of listing input boxes for all 10 of them I want to add one of those "Add Another" doohickey's where if you click it then another input box displays. Preferably if they click this box then the information already entered in the other boxes doesn't disappear. How do I go about doing this?
  13. I'm telling you... I tried google... still am... but I tried looking for programs not for actual outputs... interesting. And no, I'm pretty sure you have helped me before. I was trying to find something to jab at you with. :-) Thank you.
  14. Hey Mr. Grumpypants... I'm well aware of what this forum is for. I was asking for help, not asking you to do anything for me. I have not only searched this forum but Google as you so intelligently recommended, which pulls up everything between here and the moon in regards to converting and PDF. I figured that one, since everybody else on here runs into a bunch of the same problems that somebody here would have found something worth utilizing and two, since it would no doubt require php that again somebody here would have run into this previously and would be able to share. Stop trying to rack up your post count with these nonsense replies.
  15. Does anybody know if there is anything out there where I can take text from my db, convert it to a pdf to eventually be e-mailed?
  16. Yea, I only caught that AFTER I fixed the first problem. :-) Guess that's what happens when you've been starring at the screen for 11 hours. Thanks for the help.
  17. I figured it out... that second big IF statement was jacking me up. I didn't need it because if any of the other errors would have occurred it would have followed the header instead of completing the rest of the script. <?php session_start(); include 'connect/project.htm'; if(($_SESSION['logged_in'] == 1) && ($_SESSION['access_type'] == e)) { $uid = mysql_real_escape_string($_SESSION['user_id']); $query = mysql_query("SELECT * FROM users WHERE username = '$uid'"); $row = mysql_fetch_assoc($query); extract($row); if (isset($_POST['submit'])) { $errors = array(); ///Checks Password/// if ((!empty($_POST['opword'])) && (!empty($_POST['npword'])) && (!empty($_POST['vnpword']))) { if ($_POST['npword'] != $_POST['vnpword']) { $_SESSION['resultp'] = '<font color=red>The 2 passwords you have entered do not match.</font>'; header("Location: myinfo.php"); } elseif ($password != md5($_POST['opword'])) { $_SESSION['resultp'] = '<font color=red>Your old password was entered incorrectly. Try again.</font>'; header("Location: myinfo.php"); } else { $password = md5($_POST['npword']); $query = "UPDATE users SET password = '$password' WHERE username = '$uid'"; $result = mysql_query($query); $_SESSION['resultp'] = '<font color=lightgreen> Your password has been successfully changed.</font>'; header("Location: myinfo.php"); } } else { $_SESSION['resultp'] = '<font color=red> Please fill out all three fields.</font>'; header("Location: myinfo.php"); } } else { $_SESSION['resultp'] = '<font color=red>Ummmm... it seems like you are trying something un-kosher. I am watching. </font>'; header("Location: myinfo.php"); } } else { ?> <html> <head> <title>intelliPursuit: 10-31</title> <meta http-equiv="refresh" content="2;url=index.php" /> </head> <body> We have a 10-31. Login or face prosecution! </body> </html> <?php } ?>
  18. If I do that then the "Ummm...." part errors out near the bottom.
  19. If I type in an incorrect password and then make it so the npword and vnpword do not match I would assume it would kick me back with the error that "Hey CHucklehead... the passwords don't match!" Instead it jumps straight to the "An error has encountered" section. I've jacked around with this for a while. What curly bracket is misplaced because I cannot figure it out *Bangs head against desk* <?php session_start(); include 'connect/project.htm'; if(($_SESSION['logged_in'] == 1) && ($_SESSION['access_type'] == e)) { $uid = mysql_real_escape_string($_SESSION['user_id']); $query = mysql_query("SELECT * FROM users WHERE username = '$uid'"); $row = mysql_fetch_assoc($query); extract($row); if (isset($_POST['submit'])) { $errors = array(); ///Checks Password/// if ((!empty($_POST['opword'])) && (!empty($_POST['npword'])) && (!empty($_POST['vnpword']))) { if ($_POST['npword'] != $_POST['vnpword']) { $$_SESSION['resultp'] = '<font color="red">The 2 passwords you have entered do not match.</font>'; header("Location: myinfo.php"); } elseif ($password != md5($_POST['opword'])) { $_SESSION['resultp'] = '<font color="red">Your old password was entered incorrectly. Try again.</font>'; header("Location: myinfo.php"); } else { $password = md5($_POST['npword']); } ///Confirms and Inserts/// if (empty($_SESSION['resultp'])) { $query = "UPDATE users SET password = '$password' WHERE username = '$uid'"; $result = mysql_query($query); } if (mysql_affected_rows() == 1) { $_SESSION['resultp'] = '<font color=lightgreen> Your password has been successfully changed.</font>'; header("Location: myinfo.php"); } else { $_SESSION['resultp'] = '<font color=red> An error was encountered. Please try again.</font>'; header("Location: myinfo.php"); } } else { $_SESSION['resultp'] = '<font color=red> Filling out at least one field would get you a little further then filling out none and hitting submit. :-)</font>'; header("Location: myinfo.php"); } }else { $_SESSION['resultp'] = '<font color=red>Ummmm... it seems like you are trying something un-kosher. I am watching. </font>'; header("Location: myinfo.php"); } } else { ?> <html> <head> <title>intelliPursuit: 10-31</title> <meta http-equiv="refresh" content="2;url=index.php" /> </head> <body> We have a 10-31. Login or face prosecution! </body> </html> <?php } ?>
  20. :-) Yes... yes it was. Thank you.
  21. Real quick... I'm using this now... if ((($_FILES['userfile']['size']) < 60001) AND (($_FILES['userfile']['type']) == 'image/png' OR 'image/jpeg' OR 'image/gif' OR 'image/jpg')) But it didn't error out when it recognized the type as application/octet-stream. Any ideas? I also tried if (($_FILES['userfile']['size']) < 60001 AND ($_FILES['userfile']['type']) == 'image/png' OR 'image/jpeg' OR 'image/gif' OR 'image/jpg')
  22. Ok, i'll play around with it and see what it does for me. Thank you, as usual.
  23. "this will still allow them to upload the file to a temporary folder," But I read in the manual that as soon as the process is done it deletes from the temporary folder. So if it gets to the tmp folder but is too large does it just sit there or will it delete?
×
×
  • 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.