Welcome Guest, Not a member yet? Register   Sign In
PROBLEM WITH DB QUERIES
#2

[eluser]batteries[/eluser]
try this:

Code:
$query = “select * from operatore where user = ? and password = ?”;
$result = $this->db->query($query, array($user, $pass));

if($result->num_rows() > 0)
    echo"ASDASD";

if that doesn't work then there is probably something wrong with the query, or your table schema.


Messages In This Thread
PROBLEM WITH DB QUERIES - by El Forum - 07-18-2007, 09:03 AM
PROBLEM WITH DB QUERIES - by El Forum - 07-18-2007, 12:21 PM
PROBLEM WITH DB QUERIES - by El Forum - 07-18-2007, 06:34 PM
PROBLEM WITH DB QUERIES - by El Forum - 07-19-2007, 02:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB