Re: PHP/MS Access Help

From: Date: Thu, 25 May 2000 13:59:36 +0000
Subject: Re: PHP/MS Access Help
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-90@lists.php.net to get a copy of this message
Hi Tim, > Is the select_db not available? I'm using PHP3 and MS > Access. I looked through PHP documentation and I > can't find odbc_select_db. Here the rest of my code. I am using PHP with Access at the moment, and I haven't used the select_db function.. (So I don't know what it is for, but I'll show you how I did it, may it helps...) I just made a System DSN with ODBC-Datasources in the Windows Configuration screen. (I called it 'EXAD') Then I do in PHP: <?php $db = ODBC_Connect("EXAD", "", ""); $res = ODBC_Exec($db, "SELECT fieldname FROM table WHERE conditions"); while (ODBC_Fetch_Row($res)) { echo "<TR><TD>".ODBC_Result($res, 'fieldname')."</TD></TR>"; } ODBC_Free_Result($res); ?> This works for me... Sander.

« previous php.db (#90) next »