Baxter wrote:
> Sorry I did not know that dreamweaver generated code for
php was only for
> MySQL only? I use vbscript and it can be used for both.
> Why is that?
The PHP code generated by Dreamweaver was originally
developed about
five years ago, when connection to a database relied on
database-specific functions. So, you needed completely
different
functions to query MySQL, PostgreSQL, MS SQL Server, etc.
A third-party developer called InterAKT created a Dreamweaver
extension
called PhAKT, which uses ODBC connections. However, InterAKT
was bought
by Adobe a couple of years ago; and PhAKT was never updated
to work with
newer versions of Dreamweaver. A group of PhAKT enthusiasts
want to
create an open-source version, but I don't think they ever
got very far.
PHP now has PDO (PHP Data Objects), which is completely
database-neutral. One reason it hasn't been incorporated into
Dreamweaver is because PDO requires a minimum of PHP 5.1, and
the vast
majority of hosting companies still offer only PHP 4. Since
the vast
majority of hosting companies offer PHP in conjunction with
MySQL, the
Dreamweaver combination makes a lot of sense, but it's not
ideal for
everyone. However, I suspect that the feeling is that anyone
who wants
to use PHP in conjunction with a database other than MySQL is
more
likely to have the skill to code everything by hand.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/