|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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(); ?> |
|
#3
|
|||
|
|||
|
I hate to tell ya but i dont know ADODB.
|
|
#4
|
|||
|
|||
|
i thought you knew everything. you've just ruined my whole belief system
|
|
#5
|
|||
|
|||
|
crazytrain81,
life is full of disapointments |
|
#6
|
|||
|
|||
|
Quote:
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
|
|
#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. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > ok ben real halp this time i promise |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|