Get something or something and other from mysql

#3
[eluser]pisio[/eluser]
[quote author="Ben Edmunds" date="1257745710"]Maybe this is what you're looking for?

Code:
$query = $this->db->select('user')
                  ->where(array('name'=>$_POST['name']))
                  ->or_where(array('mail'=>$_POST['mail']))
                  ->get('users_table');

$user = $query->row();

Note that the chaining only works on php5...[/quote]
I don't know this method. 10x Smile
One beer of me for you Smile


Messages In This Thread
Get something or something and other from mysql - by El Forum - 11-08-2009, 03:10 PM
Get something or something and other from mysql - by El Forum - 11-08-2009, 05:48 PM
Get something or something and other from mysql - by El Forum - 11-08-2009, 06:07 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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