Jump to content

MS Access ADO Fallover


killahara

Recommended Posts

I've been trying to connect to a simple access database using php (access was not my idea) but keep falling over at Execute(). Is there any way to get the output of why this is falling over? I have adodb installed on my server and test.mdb is sitting on the c:\ drive.

 

Any help is greatly appreciated!

 

D

 

<?php

include("adodb.inc.php");

$database_type = "access";

$db = NewADOConnection("$database_type");

$dsn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\\test.mdb;Uid=;Pwd=;";

$db->Connect($dsn);

$sql = "SELECT * FROM tbl1";

$rs = &$db->Execute($sql); //Fall at this point

$rs->Close();

$db->Close();

echo "Ran code sucessfully";

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.