Take a look at http://adodb.sourceforge.net/

The thing about ADODb is that's usage syntax is similar to MSs ADO, but
that's about it.

The basic pattern to use is:

$dsn = 'mysql://user:[EMAIL PROTECTED]/mydb';
$conn = ADONewConnection($dsn)
$statement = $conn->Prepare('insert into table (col1,col2) values (?,?)');
$conn->Execute($statement,array("Value 1", "Value 2"));

or you can do things like
$table = "mytablename";
$sql = $conn->GetInsertSQL($table, array("column1" => "value 1",
"column2" => "value2");
$conn->Execute($sql);



Don Gould wrote:
> Ok guys, let's stay on topic.
> First I want to make things go with basic stuff.
> I've been looking at the ADOdb guys web site and that's a consideration.
> Right now I'm just trying to wack some simple stuff together to get
> functionality.  :)
> From:  http://phplens.com/phpeverywhere/node/view/32
> Database Access      Microsoft's ADO technology is commonly used.     
> ADO can be simulated using the ADOdb database library. This PHP library
> emulates ADO, and is designed by the author of this article.
> Limitations: only supports forward scrolling read-only cursors.
> Hummmm.... not what I call useful.

Reply via email to