Jump to content

wickedXxxxlegox

Members
  • Posts

    35
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.wizzletalk.comlu.com

Profile Information

  • Gender
    Male

wickedXxxxlegox's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Dangit! Here: Fatal error: Call to undefined function user_exists in /home/a1922355/public_html/login.php on line 13
  2. Whoops. I was trying to fix the text. Here it is: Fatal error: Call to undefined function user_exists() in /home/a1922355/public_html/login.php on line 13
  3. Oops, forgot to tell you that. I have the file included on init.php and then init.php is required on login,php.
  4. Hi guys, I made a login, and I have a function that is not working. I'll give you all of the parts to it. Function: } function user_exists($username) { $username = sanitize($username); $query = mysql_query("SELECT COUNT (`id`) FROM `members` WHERE `username` = '$username'") return (mysql_result($query, 0) == 1) ? true : false; } login page: if(empty($_POST) === false) { $username = $_POST['username']; $password = $_POST['password']; if(empty($username) === true || empty($password) === true) { $errors[] = 'Please enter a username and password.'; } else if(user_exists($username) === false) { $errors[] = 'We can\'t find that username. Have you <a href="register.php">register</a>ed?'; } else if(user_active($username) === false) { $errors[] = 'You have not activated your account. Check your Email!'; } else { $login = login($username, $password); if($login === false) { $errors[] = 'That username/password combination is incorrect.'; } else { echo 'You are now logged in. Please wait for the page to refresh or click <a href="home.php">here</a>.'; $_SESSION['id'] = $login; echo '<meta http-equiv="refresh" content="0;url=home.php">'; exit(); } } print_r($errors); } ?> Error: Fatal error: Call user_exists() in /home/a1922355/public_html/login.php on line 13
  5. @Jessica, the website is supposed to have the container right next to the leftbar, side by side, instead of the container moving further down the page.
  6. So, there's the code. have any idea how to fix it?
  7. I just read your subtitle. Now I know that you have mental problems. .container { height:700px; width: 700px; border:1px solid #fff; border-radius:0px 5px 5px 0px; margin: 0 auto; background-color:#FFF } .leftbar { height:700px; width: 200px; border:1px solid #fff; border-radius:5px 0px 0px 5px; float: left; background-color:#FFF }
  8. No, I haven't. Let me try...
  9. Hello everyone, On my website http://wizzletalk.comlu.com, I am trying to Align the leftbar to the left, but it keeps making my container go down. Is there a way to fix this? Thanks ahead!
  10. Hello all... I am working on a website, but I have a comments system and my 'good' ole friend is using HTML redirects... So, I am trying to delete all code that shows up in comments. Basically what I want to do is have it so that <b> = [bLOCKED]. Here's my code: <meta http-equiv="Refresh" content="0;url=home.php" /> <?php include('includes/db_connect.php') $username = mysql_real_escape_string($username); $comment = mysql_real_escape_string($comment); mysql_query("INSERT INTO comments (username, comment) VALUES ('$_POST[username]','$_POST[comment]')"); ?> Thanks!
  11. Okay, here's my commentstream.php code: <?php ('includes/db_connect.php'); $result = mysql_query("SELECT * FROM comments ORDER BY id DESC LIMIT 10"); htmlspecialchars () while($row = mysql_fetch_array($result)) { echo "<div class='comment'><b><center>".$row['username'] . "</b></center><br><br><center><i>" . $row['comment']."</i></center><>"; echo "<br/>"; } ?> Error:Parse error: syntax error, unexpected T_WHILE in /home/a1922355/public_html/commentstream.php on line 5
×
×
  • 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.