Re: Re: [PHP] mysql adapter and DAL

2011-09-17 Thread shahrzad khorrami
mysqli - it's what I wanted. thanks


Fwd: Re: [PHP] mysql adapter and DAL

2011-09-17 Thread Nilesh Govindarajan
Sorry, I clicked the 'reply' button instead of reply to all.

 Original Message 
Subject: Re: [PHP] mysql adapter and DAL
Date: Sat, 17 Sep 2011 19:07:48 +0530
From: Nilesh Govindarajan 
To: shahrzad khorrami 

On Sat 17 Sep 2011 04:54:13 PM IST, shahrzad khorrami wrote:
> hi all,
> I'm looking for a mysql adapter for create my dal..
> where can I find a good one? and have you ever written a dal with a mysql
> adapter?
> in my dal I want to pass parameters to sql sting, for example like
> following:
> $db->query($sql, array($name, $family))
>
> thanks,
> Shahrzad Khorrami
>

Why do you want to reinvent the wheel?
There are many Database Abstraction Layer packages which support MySQL.
Pear::MDB2, Zend_Db, CodeIgniter, ... the list doesn't end. Search for
them!


-- 
Nilesh Govindarajan
http://nileshgr.com

-- 
Nilesh Govindarajan
http://nileshgr.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql adapter and DAL

2011-09-17 Thread jean-baptiste verrey
hi,

If you are building your own dal I guess you would have to build your own
adapter,
simply use mysqli function and wrap them in a class.


On 17 September 2011 12:24, shahrzad khorrami
wrote:

> hi all,
> I'm looking for a mysql adapter for create my dal..
> where can I find a good one? and have you ever written a dal with a mysql
> adapter?
> in my dal I want to pass parameters to sql sting, for example like
> following:
> $db->query($sql, array($name, $family))
>
> thanks,
> Shahrzad Khorrami
>


[PHP] mysql adapter and DAL

2011-09-17 Thread shahrzad khorrami
hi all,
I'm looking for a mysql adapter for create my dal..
where can I find a good one? and have you ever written a dal with a mysql
adapter?
in my dal I want to pass parameters to sql sting, for example like
following:
$db->query($sql, array($name, $family))

thanks,
Shahrzad Khorrami