PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 9th, 2002, 08:42 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
connect MS Access

I want use MS Access to store database , can PHP support MS Access ?

Reply With Quote
  #2  
Old July 9th, 2002, 01:28 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: connect MS Access

Sure, you can connect to MSAccess with the ODBC functions....

Reply With Quote
  #3  
Old July 10th, 2002, 09:46 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: connect MS Access

Use ODBC,I want show all content of a field but when I call function odbc_fetch_rows(...) then appear a warning :
odbc_result(): supplied argument is not a valid ODBC result resource in E:wwwphpscriptodbcconnect.php on line 76


--------------------
These are my codes :
<?
...
$dsn = "anDB";
$user = "sa";
$password = "sa";
$table = "Author";
$sql = "SELECT name FROM $table";

$conn = odbc_connect($dsn, $username, $password) or die(odbc_error());

$result = odbc_exec($conn, $sql) or die(odbc_error());
if ($num_fields = odbc_num_fields($result) != 0)
while ($row = odbc_fetch_row($result)) {
76:$Dn=odbc_result($row,"name");
echo $Dn;
}//end while

odbc_free_result($result);
odbc_close($conn);
...
?>

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > connect MS Access


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT