Thanks, I'll try

I was adodb user ^^

On 25/06/07, Simon Mundy <[EMAIL PROTECTED]> wrote:
Nope, you've got to quote one parameter at a time

$t = new MailUser();
$db = $t->getAdapter();
$where = array($db->quoteInto('email = ?', $_POST['email']),
                $db->quoteInto('password = ?', $_POST['oldp']);
$r = $t->fetchRow($where);

And perhaps some filtering of your $_POST data may be a good idea,
too ;-)

> Hi All,
>
> Is this the correct way to fetch a row and quoting:
>
> $t=new MailUser; // zend_db_table
> $r=$t->fetchRow( "email=? and password=?", array( $_POST['email'],
> $_POST['oldp'])  );
>
> But it does not work.. Please help

Reply via email to