It is currently Tue Feb 07, 2012 8:54 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: PHP & access
PostPosted: Thu Mar 18, 2004 1:14 am 
how do i use php and access database for a website,where can i seekl info bout it.sample code etc


Top
  
 
 Post subject:
PostPosted: Mon May 03, 2004 10:28 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6498
Location: toronto, canada
have you worked this out yet? The basics are ODBC and setting a dsn for the access db...

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 29, 2008 9:45 am 
You have to define the path for your database from administrative tool of your computer,then you will be able to link.


Top
  
 
 Post subject:
PostPosted: Wed Feb 17, 2010 9:25 am 
Offline

Joined: Mon Feb 15, 2010 10:56 am
Posts: 3
Location: london
Hello denis
An ODBC simple Example to access Database to your website
The following example shows how to first create a database connection, then a result-set, and then display the data in an HTML table.

Connecting to an ODBC
The odbc_exec() function is used to execute an SQL statement.
Example
$conn=odbc_connect('northwind','','');
$sql="SELECT * FROM customers";
$rs=odbc_exec($conn,$sql);

<html>
<body><?php
$conn=odbc_connect('northwind','','');
if (!$conn)
{exit("Connection Failed: " . $conn);}
$sql="SELECT * FROM customers";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
echo "<table><tr>";
echo "<th>Companyname</th>";
echo "<th>Contactname</th></tr>";
while (odbc_fetch_row($rs))
{
$compname=odbc_result($rs,"CompanyName");
$conname=odbc_result($rs,"ContactName");
echo "<tr><td>$compname</td>";
echo "<td>$conname</td></tr>";
}
odbc_close($conn);
echo "</table>";
?></body>
</html>
Hope it will useful for you.

_________________
link building services


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 17, 2010 2:12 pm 
Offline

Joined: Mon May 17, 2010 1:50 pm
Posts: 2
Thanks for sharing the code by which we can learn the database connectivity.

_________________
Leather Sofa Dallas
Bedroom Furniture Dallas
Mattress Store Dallas


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2010 9:18 am 
Offline

Joined: Mon Apr 05, 2010 5:28 pm
Posts: 19
can we use php easily?

_________________
Pranic Healing India | Know the media
Best Astrology Solutions
vaastu Tips


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 28, 2010 3:05 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6498
Location: toronto, canada
Yes

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 31, 2010 10:24 am 
Offline

Joined: Wed May 12, 2010 5:00 pm
Posts: 58
Hi
Refer this link

http://www.astahost.com/info.php/Connec ... 12828.html

_________________
PHP Web Developer
Hire PHP Developer
Joomla Developer


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 16, 2011 8:01 pm 
Offline

Joined: Fri Jan 14, 2011 5:13 pm
Posts: 8
From PHP mySQL is about the easiest you can get. Support is built in so
connecting and executing the queries is very easy. Its been years since I
used Access and can't even remember how it's queried, but SQL syntax is
really very simple, and reading the documentation for PHP and mySQL will
give you a great insight into using it. The PHP documentation will give you
the commands you need to connect to the database, and the mySQL docs have a
good section on the SQL itself, for how to get information out and put
information into the database. Access is only good for very very low usage
sites, its probably the worst option there is for a database for the web.
_________________________________
Be updated with the latest technology
Austin criminal lawyers


Top
 Profile  
 
 Post subject: Re: PHP & access
PostPosted: Tue Nov 01, 2011 2:09 pm 
Offline

Joined: Tue Oct 25, 2011 1:19 pm
Posts: 13
Its quite easy to use access for backend database along with php, there are lots of websites that had used access for its backend support.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron