TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-08-2009, 10:22 AM   #1 (permalink)
The Visitor
 
Join Date: Feb 2009
Posts: 4
Thanks: 2
digitak is on a distinguished road
Default Connecting To access with php

hi !

how can i connect to access database and select,insert,update,delete from that ?

help me please
digitak is offline  
Reply With Quote
Old 03-08-2009, 07:16 PM   #2 (permalink)
The Contributor
 
Sakakuchi's Avatar
 
Join Date: Feb 2009
Posts: 64
Thanks: 1
Sakakuchi is on a distinguished road
Default

Not that I ever tried it, cause I think access simply sucks , but as far as I know you must make and dsn ->pointing to the db.

then you connect like:

PHP Code:
$connect odbc_connect('DSN-NAME','USERNAME','PASSWORD'); 
think thats a way....
Sakakuchi is offline  
Reply With Quote
The Following 2 Users Say Thank You to Sakakuchi For This Useful Post:
digitak (03-09-2009), iflashlord (04-23-2009)
Old 03-09-2009, 06:40 AM   #3 (permalink)
The Visitor
 
Join Date: Feb 2009
Posts: 4
Thanks: 2
digitak is on a distinguished road
Default

what is dsn ? :D
and how about select ,insert and ... ?
digitak is offline  
Reply With Quote
Old 03-09-2009, 08:23 AM   #4 (permalink)
The Contributor
 
Sakakuchi's Avatar
 
Join Date: Feb 2009
Posts: 64
Thanks: 1
Sakakuchi is on a distinguished road
Default

DSN:
http://en.wikipedia.org/wiki/Database_Source_Name

Creating a DSN under Windows XP:
Create a DSN under Windows...
(just google for other M$ Versions.)

Then you can use normal SQL-queries, maybe they differ from Mysql a little (Think to have heard something like this??!). Just google a bit for that syntax, should be pretty much the same
Sakakuchi is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
10 PHP Myths Dispelled Wildhoney General 9 06-15-2009 06:55 AM
PHP Compressor Kalle Script Giveaway 8 05-28-2008 12:14 AM
Apache-like Access Contol List script for PHP Wildhoney Script Giveaway 1 01-07-2008 04:40 AM
Error in connecting to MySQL via PHP EyeDentify MySQL & Databases 0 01-03-2008 01:06 PM
Do not allow direct access to php file. Sam Granger Absolute Beginners 6 10-17-2007 03:49 PM


All times are GMT. The time now is 09:56 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design