Adobe Dreamweaver Forums



Last 10 THreads :         add number to global variable? (Last Post : twistedpancreas - Replies : 0 - Views : 1 )           »          Accessing events from externally loaded swf file (Last Post : LuigiL - Replies : 2 - Views : 69 )           »          Re: Unloading SWFLoader... BUG??! (Last Post : LuigiL - Replies : 1 - Views : 2 )           »          Problem with navigateToURL to a certain frame (Last Post : Ibsie - Replies : 0 - Views : 1 )           »          html view - how to wrap the text (Last Post : lmckh - Replies : 1 - Views : 2 )           »          Help! Prob with CSS display (Last Post : hnajskmei - Replies : 0 - Views : 1 )           »          DW help urgently needed, lost my connection to site (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          Connecting to a Database (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          application.cfm/webservice (Last Post : BKBK - Replies : 1 - Views : 2 )           »          Random positions for Movieclips (Last Post : arnhemcs - Replies : 4 - Views : 8 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: , , , , ,



Reply
  #1 (permalink)  
Old 08-28-2008, 06:13 PM
derfiticulum
 
Posts: n/a
Diggs:
Default Using Recordset creator to connect PHP to ODBCconnection

Alright. I've been working with ASP for a long time and with the tools built
into Dreamweaver 8 (and previous versions) it's simple to connect my ASP pages
to an ODBC connection for creating recordsets and executing commands. But I've
finally accepted the fact that I need to learn to develop in PHP. I've got PHP
running on my machine and I'm able to hand code connections to an ODBC data
source but I'm curious how to get the Recordset creation wizard and the Command
creation wizard to connect to anything but a mySQL table.

And for those of you who are going to tell me to just switch my data to mySQL,
that's simply not an option.

Thanks in advance for any help you can provide.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-28-2008, 07:21 PM
danilocelic AdobeCommunityExpert
 
Posts: n/a
Diggs:
Default Re: Using Recordset creator to connect PHP to ODBC connection

derfiticulum wrote:
> Alright. I've been working with ASP for a long time and with the tools built
> into Dreamweaver 8 (and previous versions) it's simple to connect my ASP pages
> to an ODBC connection for creating recordsets and executing commands. But I've
> finally accepted the fact that I need to learn to develop in PHP. I've got PHP
> running on my machine and I'm able to hand code connections to an ODBC data
> source but I'm curious how to get the Recordset creation wizard and the Command
> creation wizard to connect to anything but a mySQL table.
>
> And for those of you who are going to tell me to just switch my data to mySQL,
> that's simply not an option.


Dreamweaver's built in PHP server model is not designed to connect to any other database than MySQL, so I'm afraid that the answer is to convert to MySQL, or to hand code all of your database interaction, that is you won't be able to use the Dreamweaver recordsets to connect to MySQL (and therefore won't get any data bindings either). I've not done the later anytime recently, so can't provide any particular tips on that, except perhaps to search for PHP ADODB.

If you're using Access as your database, then perhaps this search can help with a conversion if you ever do want to go that route:
http://www.google.com/search?hl=en&q...ccess+to+MySQL


--
Danilo Celic
| http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert
Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 07:21 PM
David Powers
 
Posts: n/a
Diggs:
Default Re: Using Recordset creator to connect PHP to ODBC connection

danilocelic AdobeCommunityExpert wrote:
> Dreamweaver's built in PHP server model is not designed to connect to
> any other database than MySQL, so I'm afraid that the answer is to
> convert to MySQL, or to hand code all of your database interaction, that
> is you won't be able to use the Dreamweaver recordsets to connect to
> MySQL (and therefore won't get any data bindings either).


Just to add to Danilo's comments, the problem is that PHP originally
developed a different set of functions to communicate with each type of
database. So, you have different functions for MySQL, MS SQL Server,
Oracle, PostgreSQL, etc. Yes, it's crazy, but that's how the language
originally developed.

PHP 5 introduced PHP Data Objects (PDO), which are database-neutral.
Unfortunately, Dreamweaver's PHP server model dates back to 2002,
several years before the introduction of PDO. InterAKT, a Romanian
company that was acquired by Adobe a couple of years ago, developed a
Dreamweaver extension called PhAKT, which provided ODBC connectivity.
But PhAKT was withdrawn several years ago.

So, the bottom line is use MySQL if you want Dreamweaver to do most of
the heavy lifting for you. Otherwise, you'll need to code everything by
hand. I have been pressuring Adobe to support PDO for the past three or
four years, but it hasn't happened yet.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote


  #4 (permalink)  
Old 08-28-2008, 08:25 PM
derfiticulum
 
Posts: n/a
Diggs:
Default Re: Using Recordset creator to connect PHP to ODBCconnection

Well, that's pretty much the answer I was expecting, I guess. I've been doing
this long enough that I know how to write all the sql statements and all that
jazz and I've got a good grasp on all the concepts of what has to happen and
when. I just thought that there might be a quicker way for me to learn the
syntax by having Dreamweaver build the code for me. As far as switching to
mySQL, like I said before, that's not an option. I'm writing some web apps for
some cobol software that use a cobol data variant called "vision data" so
switching data formats isn't an option. I appreciate your confirming my fear.
Now, I've got no choice but to dive in and learn I guess. Thanks again.

Reply With Quote
Reply


Thread Tools
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



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:00 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk