Jump to content

daveoffy

Members
  • Posts

    201
  • Joined

  • Last visited

    Never

About daveoffy

  • Birthday 08/09/1994

Contact Methods

  • AIM
    daveoffy

Profile Information

  • Gender
    Not Telling

daveoffy's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Yea, I was using an image button. Well thanks for all the help. where did the topic solved button go?
  2. Problem Fixed. The problem was the if(isset)) on the top. IE doesn't like caps in the name I guess.
  3. It stops when you go in IE and login. The page it stops on is login-exec. It doesn't run any of the login commands. It doesn't seem to go in any of the IF statments. There are no given errors on the page. Nothing happens, just a blank white screen on the login-exec.php page.
  4. So on my login-exec.php page it just stops. It doesn't redirect me to the page. In firefox it works fine. <?php require_once 'config.php'; require_once 'var.php'; if(isset($_POST['Login'])) { $username = md5($_POST['username']); $password = $_POST['password']; if($username == '') { header('Location: ../lf.php?reason=invalid'); exit; } if($password == '') { header('Location: ../lf.php?reason=invalid'); exit; } $aqry = "SELECT * from members WHERE username_md5='$username' AND active='1'"; $aresult = mysql_query($aqry); if($aresult) { if(mysql_num_rows($aresult) == 0) { header('Location: ../lf.php?reason=active'); exit; } } $bqry = "SELECT * from members WHERE username_md5='$username' AND banned='1'"; $bresult = mysql_query($bqry); if($bresult) { if(mysql_num_rows($bresult) == 1) { header('Location: ../lf.php?reason=banned'); exit; } } $qry="SELECT * FROM members WHERE username_md5='$username' AND password='".md5($password)."'"; $result=mysql_query($qry); if($result) { if(mysql_num_rows($result) == 1) { $getid = "SELECT id FROM `members`WHERE username_md5='$username'"; $getidresult = mysql_query($getid); while($row = mysql_fetch_assoc($getidresult)) { $username_id = $row['id']; mysql_query("UPDATE members SET lastip='".$ip."' WHERE username_md5 = '".$username."'"); mysql_query("UPDATE members SET last_login='".$date."' WHERE username_md5 = '".$username."'"); header('Location: ../index.php'); exit; } }else { header('Location: ../lf.php?reason=invalid'); exit; } } } ?>
  5. When I first looked at the code I thought it was some graph of their sales, then after reading down the posts, I thought it was cool they made it like mountains, but a waste of time.
  6. Example code would be very helpful please. Never code in JS so no idea how to do this.
  7. So I have a submit form, and I want it, so after filling in each form(or while filling it in) it shows a preview on the side. How can I make it so, when I enter Hi, in a form named title, it shows up somewhere else on that page without having to hit submit. I just want a preview so the user can see what it looks like.
  8. Not working. I am going to head over to javascript forums, since that is the correct code.
  9. How is your database set up? -User -level -owner Table is User, row is level.
  10. Do you have a connection to the database in that code? Do you have it connecting to the table level is in? Do you have a level named owner?
  11. this should work <?php var_dump($row['level']); if($row['level'] == "owner"){ ?> - <a href="../admin/index.php" target="mainFrame">Admin</a><br> <?php } ?>
  12. So I have a submit form, and I want it, so after filling in each form(or while filling it in) it shows a preview on the side. How can I make it so, when I enter Hi, in a form named title, it shows up somewhere else on that page? Thanks in advance. If this is not possible in PHP please tell me. I think it might be javascript.
  13. I want a light weight one. Shadowbox is a huge one. I would rather go with lightbox.
  14. Are you sure your sessions are set? Did you include the config to connect to database correctly?
×
×
  • 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.