Login Problems

Help
Stephan
2012-09-28
2012-11-04
  • Stephan
    Stephan
    2012-09-28

    Hi,

    When I try to log in it gives me the following warning" mysql_num_rows(): supplied argument is not a valid MySQL result resource in /.../.../public_html/classes/crc_login.cls.php on line 137
    Here is the code:

    137 if (mysql_num_rows($resource) > 0) {
    $row = mysql_fetch_row($resource);
    $this->m_name = $row[1] . ' ' . $row[2];
    $this->m_profileid = $row[0];
    $this->m_roleid = $row[3];
    $result = true;
    } else {
    <<
    Please help.

    Thank you...

     
  • Bogdan Cristea
    Bogdan Cristea
    2012-11-04

    have you created the freesms database ?