Jump to content

Search the Community

Showing results for tags 'php error num rows'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. ok i keep getting this error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\TINCS 2012 Edit\login.php on line 40 [/i][i] $errorMsg = '';$user = '';$pass = '';$remember = '';if (isset($_POST['username'])) { $user = $_POST['username']; $pass = $_POST['password']; if (isset($_POST['remember'])) { $remember = $_POST['remember']; } $email = stripslashes($user); $pass = stripslashes($pass); $email = strip_tags($user); $pass = strip_tags($pass); // error handling conditional checks go here if ((!$user) || (!$pass)) { [/i][i] $errorMsg = 'Please fill in both fields';[/i][i] } else { $con = mysql_connect($dbhost, $dbuser, $dbpass, $dbname); $user = mysql_real_escape_string($user); //$pass = mysql_real_escape_string($pass); $pass = md5($pass); [/i][i] $sql = mysql_query("SELECT * FROM user WHERE email='$user' AND password='$pass'"); $login_check = mysql_num_rows($sql);[/i][i] the above code is a old one i had laying around
×
×
  • Create New...