Re: [PHP-WIN] I Can't connect to MySql using ADODB

2005-09-15 Thread Mark Rees
> Tony Aldemir wrote: > > >Hi There, > > > >I am trying to connect to MySQL using ADODB library for PHP using the > >following code with no success. What am I doing wrong? > > > > >include('/php/adodb.inc.php'); > > > >$db = &ADONewConnection('mysql'); # eg. 'mysql' or 'oci8' > >$db->debug = true;

Re: [PHP-WIN] I Can't connect to MySql using ADODB

2005-09-15 Thread Alf Stockton
Tony Aldemir wrote: Hi There, I am trying to connect to MySQL using ADODB library for PHP using the following code with no success. What am I doing wrong? $db = &ADONewConnection('mysql'); # eg. 'mysql' or 'oci8' $db->debug = true; $db->Connect('localhost', 'tony', 'mypassword', 'test'); $r

[PHP-WIN] I Can't connect to MySql using ADODB

2005-09-14 Thread Tony Aldemir
Hi There, I am trying to connect to MySQL using ADODB library for PHP using the following code with no success. What am I doing wrong? debug = true; $db->Connect('localhost', 'tony', 'mypassword', 'test'); $rs = $db->Execute('select * from users'); print ""; print_r($rs->GetRows()); print ""; ?>