• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.