Running MySQL Connection for PHP on Dreamweaver8

Good Day:
I installed the MySQL 5.0 and PHP 5.0 to run on my Dreamweaver 8.
On the Application Panel -> Database tabs -> MySQL Connection: after i entered the connection name, user name and everything, it returns HTTP ERROR CODE 502 BAD GATEWAY.
btw, I'm running on localhost
May someone pls tell me what's wrong with it?
many thanks!

Hi,
maybe your issue is related to what´s already been posted to the Dreamweaver Application Development forums:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=263&threadid =1293443&enterthread=y
Günter Schenk
Adobe Community Expert, Dreamweaver

Similar Messages

  • Dreamweaver & MySQL Extension for PHP

    Hey guys,
    As everybody knows, the mysql extension in PHP has been deprecated and it will soon be replaced by mysqli, so does anybody know where I can find an Adobe Extension I can use so I can start using mysqli with Dreamweaver instead of mysql?
    By the way, I'm using CS5, CS5.5, so I don't have access to exchange since Adobe put it to work only with CS6.
    Thanks

    PHSTechSupport wrote:
    Hey guys,
    As everybody knows, the mysql extension in PHP has been deprecated and it will soon be replaced by mysqli, so does anybody know where I can find an Adobe Extension I can use so I can start using mysqli with Dreamweaver instead of mysql?
    By the way, I'm using CS5, CS5.5, so I don't have access to exchange since Adobe put it to work only with CS6.
    Thanks
    Unfortunately there is no extention available at the moment which replaces the old/current msql server behaviours in DW for msqli. Whilst they are/were useful they are/were also were quite limiting.
    After Adobe announced that they would be removing the server behaviors in the current version of DW CC and that php announced that it would no longer support the sql extention in it's next release personally I decided it was time to move on. The good news is using sqli to connect/query a database is really quite a simple proceedure. Just Google a few tutorials.
    I understand the reasoning for wanting sqli automation BUT its not available at the moment so you have two choices, 1) continue to use the old mysql server behaviours or 2) learn the new sqli way. It wont take you long to get to grips with it. The server behaviours in DW only offered the basics so learning those basics using sqli isn't going to be too time consuming, plus you actually get more familar with the coding.

  • PHP MySQL connect error

    OK
    I get the following error when running my php pages on our
    new web server (Windows Server 2003):
    Fatal error: Call to undefined function mysql_pconnect() in
    c:\Inetpub\wwwroot\jionas_website\Connections\jonas_website.php
    on line 9
    When I open the file jonas_website.php it indicates the
    filename Connection_php_mysql.htm. It is on my local machine in the
    programs folder but not on the web server. Should it be?
    If I run a phpinfo page it runs fine...actually any php
    commands seems to work.
    I also get that "unidentified error" when I try to connect to
    MYSQL through Dreamweaver MX 2004. I have followed all the
    suggestions in the technote for this error. I still get it.
    I can connect to the MYSQL server through MYSQLadministrator
    so I am not sure what is going on.
    Please help.
    Darren

    Hung Kuen Kung Fu wrote:
    > MYSQL is not listed under the phpinfo page. MMM. Not
    sure how to enable this in the php.ini so i will have to look.
    Remove the semicolon from the beginning of these lines in the
    Windows
    extensions section:
    ;extension=php_mbstring.dll
    ;extension=php_mysql.dll
    Also add this line after them:
    extension=php_mysqli.dll
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • PHP MySql connection to GoDaddy

    I use DWCS4, PHP, MySQL. I have created a MySql database on my GoDaddy-hosted account and can FTP to it and have transferred tables and data to it. However, when I try to create a database connection in DW, I get the following error message; "Your PHP server does not have the MySQL module loaded or you can’t use the mysql_(p)connect functions."
    I searched for solutions on the web (no answers in this forum), and got several results that said to manually create the connection file such as the following
    <?php//Sample Database Connection Syntax for PHP and MySQL.
    //Connect To Database
    $hostname="your_mysqlserver.secureserver.net";
    $username="your_dbusername";
    $password="your_dbpassword";
    $dbname="your_dbusername";
    $usertable="your_tablename";
    $yourfield = "your_field";
    mysql_connect($hostname,$username, $password) OR DIE ("<html><script language='JavaScript'>
    alert('Unable to connect to database! Please try again later.');
    history.go(-1);</script></html>");
    mysql_select_db($dbname);
    ?>
    Just fill in your password etc, save it as connectdb.php (or whatever), and include it at the top of the files that need to access the database. You could use an if statement to determine whether you were working locally or on GoDaddy.
    I tried that, but it still won't connect. (My regular connection for just transferring files works fine).
    Has anyone out there solved the GoDaddy database connection problem?
    Frank

    Check php_info()to see which connector is enabled.
    It should be either mysql or mysqli.
    Since you are having problems with mysql, try to connect with mysqli connector.
    If that won't solve your problem, email GD about your problem, and ask if any mysql connectors are enabled in your hosting plan.

  • CS3 mysql database connection using php

    Hi, this is my first time trying to connect to a database.  I have created a mysql database with my hosting provider.  I am also configured to use php. I have ready numerous threads on this topic, but am still confused.
    I am getting the following error message:
    When I enter the following information into the connection string, I get the following error Error http error code 404 file not found. The site does not map to ftp.readyhosting.com/_mmserverscripts/mmhttdb.php Is the location of mysql server correct? Connection name ? user defined ?aosprod?
    Mysql server = aoswebeditor.readyhostingmysql.com.  Also, this is not the same location as the web server. 
    The hosting company provides the following php code to connect to the database. 
    <?php
    $link = mysql_connect('aoswebeditor.readyhostingmysql.com', 'aosweb', '*password*');
    if (!$link) {
        die('Could not connect: ' . mysql_error());
    echo 'Connected successfully';
    mysql_select_db(aos);
    ?>
    Because of the connection dialog boxes in CS3, I have not used this php code but only used the mysql server aoswebeditor.readyhostingmysql.com.
    My requirements are very simple, I want to use the same remote database for the dreamweaver connection for the remote and testing server.
    Any ideas would be appreciated.
    Thanks. George

    First of all, you seem to be mixed up about terminology. ASP stands for Active Server Pages, and is a type of server technology similar to PHP. I think you mean ISP (Internet Service Provider). However, this is not correct, either. An ISP provides your connection to the internet. Although some ISPs also host websites for their customers, your website is normally located at a hosting company. You need to get that mixup out of the way. Otherwise, you might confuse people with future questions about ASP, when you actually mean something completely different.
    OK, lecture over...
    Your hosting company is following standard procedure by preventing remote access to MySQL databases. However, Dreamweaver does make it possible to use your remote database and website for testing purposes. It does so by uploading a hidden folder called _mmServerScripts to your remote server. This performs a local connection with your database, and then sends the results back to your local computer. When setting up your testing server definition in Dreamweaver, you need to provide the details as I indicated before. When creating a MySQL connection in Dreamweaver, fill in the server name and account details as given to you by your hosting company. If everything is set up correctly, you should be able to use your remote server and database for testing.
    Having said that, it is much better to install a local testing environment. You'll find it faster, and it also lets you make mistakes (an essential part of the learning process) in the security of a closed environment. For details of how to set up a local testing environment, see this article in the Adobe Developer Connection.

  • New PHP/MySQL Connection extension doesn't  show tables.  What's the next step?

    I'm creating Dreamweaver extensions to work with my CMS.
    Since it is already connecting to the MySQL database I'd like
    Dreamweaver to access the same connection without asking the
    developer for the MySQL credentials again. I have created the HTML
    form, the EDML for the connection script, and the JavaScript to
    stitch it together, and I can successfully create connections. The
    connection script looks good but when I try to expand the tables in
    the database window it doesn't post a request to the server and it
    just shows "None". I have a regular PHP MySQL connection on the
    same site which works fine.
    I feel like I'm missing a required next step which would tell
    it how to enumerate tables. It would be ideal if I could plug into
    the existing PHP MySQL code for this.
    I would really appreciate any help and/or pointers!

    "zymsys" <[email protected]> wrote in
    message
    news:fiuho4$ao8$[email protected]..
    > I'm creating Dreamweaver extensions to work with my CMS.
    Since it is
    > already
    > connecting to the MySQL database I'd like Dreamweaver to
    access the same
    > connection without asking the developer for the MySQL
    credentials again.
    > I
    > have created the HTML form, the EDML for the connection
    script, and the
    > JavaScript to stitch it together, and I can successfully
    create
    > connections.
    > The connection script looks good but when I try to
    expand the tables in
    > the
    > database window it doesn't post a request to the server
    and it just shows
    > "None". I have a regular PHP MySQL connection on the
    same site which
    > works
    > fine.
    > I feel like I'm missing a required next step which would
    tell it how to
    > enumerate tables. It would be ideal if I could plug into
    the existing PHP
    > MySQL code for this.
    >
    > I would really appreciate any help and/or pointers!
    Are you using the Database access functions?
    http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd31.htm
    MMDB.getTables()
    http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd42.htm
    MMDB.getColumns()
    http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd34.htm
    Or are your trying to create a new Connection Type for the
    PHP_MySQL_ServerModel or a whole new servermodel alltogether?

  • Updating to 10.4.11 killed my PHP/MYSQL connections

    Hi all - I use Dreamweaver CS3 for web development, and have been using some very simple PHP/MYSQL Select and Inserts. Everything was working fabulously up until this morning, when I updated to 10.4.11 (Macbook Pro, CoreDuo). As soon as I updated, I get a 'No Database Selected' message in Safari, Firefox and IE. I can see the database and work with it in DWeaver, just can't get it to go live in browsers.
    I'm running PHP 5.2.4, MYSQL 5.1.8 and whatever version of Apache is bundled in OS X (I think it's 1.x - but can't find how to get that number!)
    Just for record, I have stopped/restarted Personal Web Sharing, Personal File Sharing, OS X, MYSQL to just check whether something wasn't working there.
    I'm about to close out, zap the PRAM and then come back in.
    Any ideas?
    Vince

    Thanks - A couple of additional points. This is OS X 10.4.11, not OS X Server, so I had installed MYSQL and PHP as fresh installations. MYSQL has not changed since I installed and is running fine through direct client (Navicat).
    For PHP I was running 4 and it had been running fine. When the update to OSX came through, PHP 4 didn't work - no change had been made to any configuration file that was working already. These are the httpd.conf instructions I had followed to set-up PHP 4:
    +1 Launch Terminal from /Applications/Utilities.+
    +2 Open the Apache configuration file and edit the UNIX shell prompt:+
    +sudo pico /etc/httpd/httpd.conf+
    +3 When prompted for a password, enter the Mac OS X administrator account password.+
    +4 Uncomment the following lines:+
    +LoadModule php4_module libexec/httpd/libphp4.so+
    +AddModule mod_php4.c+
    +5 Add the following lines (add these lines above: AddType application/x-tar .tgz):+
    +AddType application/x-httpd-php .php+
    +AddType application/x-httpd-php-source .phps+
    +Note: All the commands for the pico editor display on the screen and you can start any commands with the Control key. Use the arrow keys to move around. Pico is a text editor, mostly for UNIX users to use at the UNIX command line. The pico text editor resides in /usr/bin/ directory.+
    +6 Add a new index page for PHP (index.php) so that the web server will recognize it as the first page to load:+
    +<IfModule mod_dir.c>+
    +DirectoryIndex index.html index.php index.htm+
    </IfModule>
    +7 Save the httpd.conf file by pressing ^X (control & x keys). When the screen asks "Save Modified buffer?", press "Y". When prompted for "File Name to write : httpd.conf", press Return once to accept it. This will return you to the UNIX shell prompt.+
    When PHP 4 stopped working, I took the decision to upgrade to 5 and then fix the breakdown (by now, I was convinced it was an Apache change (nothing in config had changed at all). So, upgraded to PHP 5 and, to do so, had to reverse the directions above. Since then, I've tried reenabling the above, replacing with PHP5 wherever PHP4 appears, all to no avail (in fact, it just froze the Personal Web Sharing that turns Apache on/off).
    Right now, running the phpinfo check detailed above tells me the PHP 5 is successfully installed and running. The text from the test copied here:
    +System Darwin Vincet-MacBook-Pro.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386+
    +_Build Date_ Aug 31 2007 23:38:11+
    +_Configure Command_ './configure' '--prefix=/usr/local/php5' '--with-apxs' '--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-iconv' '--with-openssl=/usr' '--with-zlib=/usr' '--with-gd' '--with-zlib-dir=/usr' '--with-ldap' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-snmp=/usr' '--enable-exif' '--enable-wddx' '--enable-soap' '--enable-sqlite-utf8' '--enable-ftp' '--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-mbstring' '--enable-calendar' '--enable-bcmath' '--with-bz2=/usr' '--enable-fastcgi' '--enable-cgi' '--enable-memory-limit' '--enable-zip' '--enable-pcntl' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-curl=shared,/usr/local/php5' '--with-mysql=shared,/usr/local/php5' '--with-mysqli=shared,/usr/local/php5/bin/mysql_config' '--with-pdo-mysql=shared,/usr/local/php5' '--with-libxml-dir=shared,/usr/local/php5' '--with-xsl=shared,/usr/local/php5' '--with-pdflib=shared,/usr/local/php5' '--with-imap=../imap-2004g' '--with-kerberos=/usr' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr/local/php5' '--with-png-dir=/usr/local/php5' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/php5' '--with-iodbc=shared,/usr' '--with-pgsql=shared,/usr/local/php5' '--with-pdo-pgsql=shared,/usr/local/php5' '--with-t1lib=/usr/local/php5' '--with-gettext=shared,/usr/local/php5' '--with-ming=shared,/usr/local/php5' '--with-mcrypt=shared,/usr/local/php5' '--with-mhash=shared,/usr/local/php5' '--with-mssql=shared,/usr/local/php5' '--with-fbsql=shared,/Users/liyanage/svn/entropy/universalbuild/src/FBDeveloper Libraries/Library/FrontBase' '--with-json=shared' '--enable-memcache' '--enable-openbase_module'+
    +_Server AP_I Apache+
    +_Virtual Directory Suppor_t disabled+
    +_Configuration File (php.ini) Path_ /usr/local/php5/lib+
    +_Loaded Configuration File_ /usr/local/php5/lib/php.ini+
    +_Scan this dir for additional .ini files_ /usr/local/php5/php.d+
    +_additional .ini files parsed_ /usr/local/php5/php.d/10-extension_dir.ini, /usr/local/php5/php.d/50-extension-curl.ini, /usr/local/php5/php.d/50-extension-fbsql.ini, /usr/local/php5/php.d/50-extension-gettext.ini, /usr/local/php5/php.d/50-extension-json.ini, /usr/local/php5/php.d/50-extension-mcrypt.ini, /usr/local/php5/php.d/50-extension-mhash.ini, /usr/local/php5/php.d/50-extension-ming.ini, /usr/local/php5/php.d/50-extension-mssql.ini, /usr/local/php5/php.d/50-extension-mysql.ini, /usr/local/php5/php.d/50-extension-mysqli.ini, /usr/local/php5/php.d/50-extension-odbc.ini, /usr/local/php5/php.d/50-extension-pdf.ini, /usr/local/php5/php.d/50-extension-pdo_mysql.ini, /usr/local/php5/php.d/50-extension-pdo_pgsql.ini, /usr/local/php5/php.d/50-extension-pgsql.ini, /usr/local/php5/php.d/50-extension-xsl.ini+
    +_PHP API_ 20041225+
    +P_HP Extension_ 20060613+
    +_Zend Extension_ 220060519+
    +_Debug Build_ no+
    +_Thread Safety_ disabled+
    +Zend Memory Manager enabled+
    +_IPv6 Support_ enabled+
    +_Registered PHP Streams_ zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps+
    +_Registered Stream Socket Transports_ tcp, udp, unix, udg, ssl, sslv3, sslv2, tls+
    +_Registered Stream Filters_ string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*+
    I don't know if any of this helps, but it's what I find. From my online troubleshooting and reading, I believe all of the above looks right and that things should work. So, I'm still left with an informed gut decision that something in the set-up of Apache changed (location in file structure, configuration file, etc.) Could it be looking at a second copy of httpd.conf somewhere else? That would seem to make sense - however I haven't managed to turn up how to assess which version of Apache is loaded (I think 1.3) or where it's located.
    If anyone can confirm what PHP5 code should be included in httpd.conf given the above, that would be a great next step.
    Thanks for all your assistance!
    Vince

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • I have Remote desktop connection for my mac running osx 10.6.8 and I have a windows xp laptop, I want to have my mac be able to run the windows xp from my pc, how do I do it?

    I have Remote desktop connection for my mac running osx 10.6.8 and I have a windows xp laptop, I want to have my mac be able to run the windows xp from my pc, how do I do it?

    Hello Fiona,
    Congratulations on your new iPhone!  You can sync information to your iPhone from your MacBook Pro using the Info tab in iTunes when your iPhone is connected.  Use the steps in the following article:
    iOS: Syncing your data with iTunes
    http://support.apple.com/kb/ht1386
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Need to connect a web cam and external mike to my McBook Pro running snow leopard for a Skype session with another school. Attached an HP webcam (USB) and can't get video. Any suggestions?

    Need to connect a web cam and external mike to my McBook Pro running snow leopard for a Skype session with another school. Attached an HP webcam (USB) and can't get video. Any suggestions?

    -->Click HERE<--  Does item "B" (Turn video on/off) in the last topic on the page help?
    You control the camera for Skype from within Skype, so  Skype must be running to running to make video work.
    Message was edited by: EZ Jim
    Mac OSX 10.7.4

  • Complete DW CS5 Cookbook for PHP/MySQL ebook needed

    Complete DW CS5 Cookbook for PHP/MySQL ebook needed.
    Please reply me a good link for download.
    Thanks
    or email me here: [email protected]

    Sorry, I don't know of any e-books for that particular title. 
    Some links that may be of interest to you:
    http://foundationphp.com/books.php
    http://tinyurl.com/7vk4n47
    http://tinyurl.com/yh6n8yo
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Mysql connect

    I have been using Dreamweaver 8 for about a month (previously
    mx2004). It is updated to 8,02.
    I can't make a mysql connection as well as open help section.
    The help section freezes then closes Dreamweaver
    The mysql conn throws this error:
    can't connect to local mysql server through
    socket;/var/lig/mysql/mysql/sock'(2)
    What has happened, this worked fine a few days ago?
    Thanks for any help.
    marjie

    comarell wrote:
    > The mysql conn throws this error:
    > can't connect to local mysql server through
    > socket;/var/lig/mysql/mysql/sock'(2)
    > What has happened, this worked fine a few days ago?
    If you're using a local testing environment, it sounds as
    though the
    MySQL server has stopped running on your Mac.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Microsoft Drivers for PHP 5.6+ for SQL Server

    Hi there! I'm trying to migrate all of the sites running on Joomla 3, PHP 5.6, from mySQL to MSSQL server 2014. I can only find Microsoft SQL driver 3 which supports
    until PHP 5.4 but I'm currently running PHP 5.6. Joomla will NOT even recognize SQL driver PHP 5.4 since I'm running PHP 5.6. Based on my research, it seems as Microsoft DO NOT have SQL driver for PHP 5.6 and don't seem to worry about it. Is there any support
    for SQL Drivers for PHP in the future (PHP 5.6+)? Any suggestions? These current sites we are supporting do get PHP upgrades, as well as Joomla. Any help is greatly appreciated. Thanks.

    Microsoft as a whole don't worry about PHP, PHP is not a product of Microsoft. The support for PHP was just because of over requests of PHP users and developers so Microsoft supported PHP on Windows. 
    Microsoft, might, in future support 5.6 and so on, but these features are not as much supported by Microsoft as MS SQL Server, Windows, ASP.NET are supported and updated frequently.
    So, as you've already found. The bid is that you go, and find a third-party plugin. Or, you can however read the manuals (developer documentation) of SQL Server and try to create a plugin in PHP that would connect to SQL Server. If I had to do this, I would
    have created a new plugin rather than trying to use an old third-party plugin. Microsoft's product are land-locked so you can't say any plugin would fully function with Microsoft's products.
    ~!Firewall!~

  • Code generated in FB 4 for php zend service

    I am trying the data generation stuff for php in FB 4
    I used to use amfphp and my class would look like this
    <?php
    error_reporting(E_ALL);
    require('DB_CONSTANTS.php');
    class AudioService{
        var $connection;
        function AudioService(){
            $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS);
            mysql_select_db(DB_NAME, $this->connection) or die(mysql_error());
        function checkResetPasswordKey($key){
            if (!eregi("^[0-9a-zA-Z]{50}$",$key)) {
                throw new Exception('Bad key');
            /* Verify that user is in database */
            $q = "SELECT * FROM tbusers WHERE forgotPassKey = '$key' AND
    now() < forgotPassExpiry";
            $result = mysql_query($q, $this->connection);
            if (!$result) {
                $message  = 'Invalid query: ' . mysql_error() . "\n";
                $message .= 'Whole query: ' . $query;
                throw new Exception($message);
            if ((mysql_numrows($result) < 1)) {
                //throw new Exception('Your ');
            return $result ;
    ?>
    however in the code generated like FB 4 it looks like this, I wanted to know what advantages this has over my method.
    Thanks
    <?php
    class service {
        /*var $username = "nik";
        var $password = "tat0W";*/
        var $username = "root";
        var $password = "";
        var $server = "localhost";
        var $port = "";
        var $databasename = "nikk";
        var $tablename = "contactlist";
        var $connection;
        public function __construct() {
              $this->connection = mysqli_connect(
                                      $this->server, 
                                      $this->username, 
                                      $this->password,
                                       $this->databasename
            $this->throwExceptionOnError($this->connection);
         * Returns all the rows from the table.
         * Add authroization or any logical checks for secure access to your data
         * @return array
        public function getAllTbrawcontactlist() {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            $rows = array();
            mysqli_stmt_bind_result($stmt, $row->id, $row->email, $row->dateCreated, $row->wantsEmails);
            while (mysqli_stmt_fetch($stmt)) {
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->id, $row->email, $row->dateCreated, $row->wantsEmails);
            mysqli_stmt_free_result($stmt);
            mysqli_close($this->connection);
            return $rows;
        private function throwExceptionOnError($link = null) {
             if($link == null) {
                $link = $this->connection;
            if(mysqli_error($link)) {
                $msg = mysqli_errno($link) . ": " . mysqli_error($link);
                throw new Exception('MySQL Error - '. $msg);
    ?>

    I am by no means an expert; furthermore, I do not know PHP, I use ColdFusion. But what I am about to say applies just the same.
    "however in the code generated like FB 4 it looks like this, I wanted to know what advantages this has over my method".
    Advantages? None, and probably some disadvantages. I have qualms about this "data-centric" paradigm. Just to do some fun testing, I created two little projects:
    Using the data-centric features of FB 4,
    http://www.timos.com/FB4/CartoonTestREL/CartoonTest.html;
    Resulting SWF size: 65 KB.
    Using a service I coded, a cusom component based on mx:UIComponent,
    http://www.timos.com/FB4/ToonTestREL/ToonTest.html;
    Resulting SWF size: 54 KB.
    These both have View Source enabled, so you can see the differences.
    Anytime you use a program to generate code, that code will almost always be much larger than if you code by hand.
    Look at the diference between the generated value objects and my single AS class. I have not run the profiler, so I don't know how many milliseconds' difference there is between how fast these run, but I suspect #2 is faster.
    You can go from here.
    Best regards,
    Carlos

  • MySQL Connection failed ServerScipt file are disappearing

    Running CCS Dreamweaver, Mac OS 10.7.5. MAMP Local Server is working.
    I have a sucessful connection on Manage Site>Server>Local Server
    I am trying to connect a database through Window>Database>MySQL Connection.
    1, I have copied the /MMHTTPDB.php and the mysql.php file to my sites mmServerScript folder. As per Adobe
    I get this error message:
    The files (mysql.php,mmServerScript ) I copied in to my web site folder are now gone from the website>mmServerScript folder.
    I did it three times! All the same results.
    Anyone?

    There are detailed instructions for setting up a PHP development environment in Dreamweaver on a Mac here: http://www.adobe.com/devnet/dreamweaver/articles/setup_php.edu.html#articlecontentAdobe_nu mberedheader_1.
    Looking at the error message you have got, you have not defined your site in the MAMP server root (/Applications/MAMP/htdocs). Also, you don't need to copy the MMHTTPDB.php and the mysql.php files. Dreamweaver does that automatically for you.
    You should also realize that the name of the folder that contains those files begins with an underscore. It's _mmServerScripts, not mmServerScripts.
    Finally, be warned that the PHP server behaviors in Dreamweaver are deprecated. They use code that will be removed from a future version of PHP.
    Dreamweaver is fine for developing with PHP, but you should be prepared to hand-code PHP scripts if you want your web pages to continue to work in future.

Maybe you are looking for

  • Can two iTunes accounts share the same appleTV simultaneously ?

    can two iTunes accounts share the same appleTV simultaneously ?

  • Value field in 0ic_c03

    I have a requirement where I need to calculate the stock  in the plant & its value Can any one tell me what is the keyfiure needs to be taken for the value For example for material1 the qty available in the plant is 10 & I should show the value of th

  • ActiveSync with F5 doesn't work!

    Hello All! I'm configuring nowadays ActiveSync for mobile devices that will connect from Internet. I have URL for ActiveSync that points to External IP of our F5, let's say: https://activesync.com  After F5 gets request from Mobile Device it's being

  • Reason Code - several questions

    Hi all I have checked FAQ, discussions, help etc, but I could not find any reply to the following questions: 1) If I am in excel changing a value and get my popup with the reason codes assigned to the roles,     the order of the reason codes seem to

  • Drag-Drop URL onto Desktop - goes to other monitor

    Under SL, when I had Safari open on my 2nd monitor and I dragged a site's 'icon' (to the left of the URL in the address area) onto the Desktop, the URL/shortcut file stayed on the Desktop where I dropped it.  Now, under ML when I drag onto some place