RE: [PHP] ODBC Example?

From: Date: Thu, 29 Jun 2000 15:35:50 +0000
Subject: RE: [PHP] ODBC Example?
Groups: php.general 
Request: Send a blank email to php-general+get-3817@lists.php.net to get a copy of this message
try this. ryan <?php $username = ""; // your username $password = ""; // your password $dsn = ""; // datasource dsn name $query = ""/ // your query string // connect to the dsn $odbc_link = odbc_connect($dsn,$username,$password); if ($odbc_link) echo "<H1>ODBC Connect Success!</H1>"; // do query $odbc_result = odbc_exec($odbc_link,$query); $foo = odbc_result_all($odbc_result,"cellspacing=0 cellpadding=2 border=1"); ?> > -----Original Message----- > From: Jared Walker [SMTP:igjarjuk@tca.net] > Sent: Thursday, June 29, 2000 1:06 PM > To: Php-General > Subject: [PHP] ODBC Example? > > Hello, > Can anyone send me a simple ODBC example code? I'm planning on > connection > to an access database, with using a DSN. Can anyone help? > > -Jared "Igjarjuk" Walker > "Life should come with reference drivers." > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#3817) next »