General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 3rd, 2002, 03:28 PM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
ok ben real halp this time i promise

$db = new COM("ADODB.Connection")
or die("Could not start ADO");
$db->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\inetpub\wwwroot\accessDB\testDB.mdb;")
or die("Could not open connection");

errors out on "could not open connection". newest version of php, win2k advanced server, com is set up with the right permissions, the folder and db have the right permissions.

Reply With Quote
  #2  
Old December 3rd, 2002, 03:46 PM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
OK update, it "SEEMS" to be connecting, but I get no results from my query. and yes there is data in the table.

<?php

$db = new COM("ADODB.Connection")
or die("Could not start ADO");
$db->Open("testDB");
or die("Could not open connection");

$rs = $db->execute("SELECT * FROM news")
or die("Query Failed");

while (!$rs->EOF) {
$user = $rs->Fields('user');
print $user->value;
}

$rs->close();
$db->close();

?>

Reply With Quote
  #3  
Old December 3rd, 2002, 08:44 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I hate to tell ya but i dont know ADODB.

Reply With Quote
  #4  
Old December 5th, 2002, 12:12 AM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
i thought you knew everything. you've just ruined my whole belief system

Reply With Quote
  #5  
Old December 5th, 2002, 12:55 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
crazytrain81,

life is full of disapointments

Reply With Quote
  #6  
Old December 5th, 2002, 01:12 AM
AmericanD AmericanD is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 81 AmericanD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Quote:
Originally posted by crazytrain81
i thought you knew everything. you've just ruined my whole belief system


ha ha ha

dude buy A BOOK from amazon please and learn .
__________________
Hungry for Code

Programming works best with a team over one single person

Reply With Quote
  #7  
Old December 5th, 2002, 01:38 PM
crazytrain81 crazytrain81 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 232 crazytrain81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Sorry americand, i should've put a disclaimer *** *** ***** here who don't pick up on sarcasm.


*edit: please refrain from insults*

Last edited by FrankieShakes : December 6th, 2002 at 02:14 PM.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > ok ben real halp this time i promise


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 5 hosted by Hostway
Stay green...Green IT