hi list,
I am given a task to connect to a database and display the info there onto the Web.
So that whatever changes are made in the database...my web page will also show the
newly changed data. I am planning to try doing this using PHP but as i am new to
php...i don't know how to go about
Using the script below, I was able to connect to the database named
"contacts" for
output.
*However*, when I insert a [username] and [password] in place of the "" "",
I get:
"Couldn't connect to the database" - eventhough I am able to connect to
mysql.
How do I go about replacing the "" and "
6, 2002 3:10 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] connecting to a database using ODBC
>
>
>Can anyone offer some help
>
>I need to connect to an acces database, Using php on Windows with Apache.
>If anyone has some sample code I would greatly appreciate it I am
Hi,
**first step:
create DSN in Windows (Control Panel, ODBC) and bind
it with your Access database
**then in php code:
$dbhandle = odbc_connect('YourDSN', '','');
if($dbhandle == 0)
{
die('Error connecting DB'); // or error
handler
}
*here do your
Can anyone offer some help
I need to connect to an acces database, Using php on Windows with Apache.
If anyone has some sample code I would greatly appreciate it I am lost about
the wholeODBC thing.
Cirkit
_
Chat with friends on
I'm your "Tech Psychic". You're obviously running one of those M$ productz
and trying to install your own phpBB forum, aren't you? What you want to do
is enter localhost as the host name (since you're a newbie you wouldn't be
doing distributed access) and you'll have to use WinMySQLadmin to crea
What about the good old RTFM apporach, to start with? ;)
-Original Message-
From: Ross Fleming
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 2001-11-02 01:11
Subject: RE: [PHP-WIN] Connecting to a database
What database are you using? There are several you can use.
mssql, mysql
From: Raoul Snyman [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 23:04
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Connecting to a database
Hi,
I'm a newbie and I'd like to know how to connect to a database. what goes in
the hostname, username, etc. parameters, and how to use that connec
Hi,
I'm a newbie and I'd like to know how to connect to a database. what goes in
the hostname, username, etc. parameters, and how to use that connected db.
Thanks
Raoul Snyman