Mysql, PHP, and Dreamweaver

Hi!
I am struggling with the mysql connection problem with
Dreamweaver 8.02 on the mac. I downloaded the trial version of both
the Windows and the Mac of Dreamweaver. On the Windows side, I can
put all my information in and it connects to the database fine.
However, if I duplicate every single entry for the server
information on the Windows side to the Mac side, I get the never
ending problematic "404 File Not Found" error message and
"unidentified error" message that keeps popping up.
Even furthermore, after checking the web server logs, when I
test the mysql connection on the Windows end, I see a post on the
web server. When I check it from the mac end, I see nothing on the
web server.
I have used Dreamweaver in the past on the mac side, and I
have always struggled with getting this to work. Why am I having so
many problems with it and how can I resolve them?
Thanks in advance...

wiz561 wrote:
> However, if I duplicate every single entry for the
server information on
> the Windows side to the Mac side, I get the never ending
problematic "404 File
> Not Found" error message and "unidentified error"
message that keeps popping up.
This is probably a result of the testing server definition on
your Mac.
The normal location for dynamic sites on a Mac is in the
Sites folder of
your home folder. The URL prefix for this translates to this:
http://localhost/~username/
Not
http://localhost/ as on Windows.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Apache/MySQL/PHP and Mountain Lion

    I was about to buy Mountain Lion, but I just read by a reviewer that there is an issue with the webserver or websharing capabilities of it. The reviewer was saying he/she had to go into the terminal and launch it from there!
    Is anybody else having issues with developing database driven sites on Mountain Lion, or are you getting on OK with it?
    I currently use xammp as my apache/mysql/php server. Is anybody on Mountain Lion using xammp, if not, what equivalent are you using?
    Thanks.
    Mat

    Starting Apache is very easy. Simply type the following into a terminal:
    sudo apachectl start
    I think that they removed the tick box because it's so easy to do from terminal, and not something that most OSX users need.
    As SnakEyez02 mentioned, using a package like MAMP or XAMPP doesn't require this. Those apps run their own Apache

  • MySQL php and CHARACTER SET error

    Still very new to php and MySQL, in fact this is my first
    site using it.
    I have got an issue with displaying characters, namely the
    £ sing, all I get is an ? displayed.
    I have been told to use, utf8 in the database field but this
    has not helped cure the problem.
    I'm building the site in DW CS3 and it's all running off my
    Mac using OS X 10.5.1 and the built in php client.
    Could anyone show me the right way to go?

    Ok I think my IQ is falling me, it's been a long week.
    <?php header('Content-type: text/html;charset=utf-8');
    ?>
    Is the first line of code on the test page I have got
    running. I have no error but I also have no £ sings.
    Here is the live page:
    http://www.epos-acoustics.com/test.php
    The page code:
    <?php header('Content-type: text/html;charset=utf-8');
    ?>
    <?php require_once('Connections/epos.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    mysql_select_db($database_epos, $epos);
    $query_rs01 = "SELECT * FROM epos_shop ORDER BY my_shop_id
    ASC";
    $rs01 = mysql_query($query_rs01, $epos) or
    die(mysql_error());
    $row_rs01 = mysql_fetch_assoc($rs01);
    $totalRows_rs01 = mysql_num_rows($rs01);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>shop text test</title>
    </head>
    <body>
    <?php do { ?>
    <table width="600" border="0" cellspacing="2"
    cellpadding="2">
    <tr>
    <td width="92">Product name: </td>
    <td width="494" colspan="2"><?php echo
    $row_rs01['my_shop_product']; ?></td>
    </tr>
    <tr>
    <td valign="top">Description:</td>
    <td colspan="2"><?php echo
    $row_rs01['my_shop_text']; ?></td>
    </tr>
    <tr>
    <td>Price:</td>
    <td colspan="2"><?php echo
    $row_rs01['my_shop_price']; ?></td>
    </tr>
    <tr>
    <td height="30" colspan="3"> </td>
    </tr>
    </table>
    <?php } while ($row_rs01 = mysql_fetch_assoc($rs01));
    ?></body>
    </html>
    <?php
    mysql_free_result($rs01);
    ?>
    Am I missing the point or do I have something wrong with the
    table or field?

  • MySQL databases and dreamweaver

    Please, somebody help me!!
    I am on a Mac. I have my site up but can't use it because of
    the database issues I am having.
    1. I don't write code - hence my purchase of Dreamweaver
    2. My host will not allow me to connect to MySQL
    (server-side) and suggested I try an SSH. I got Navicat.
    It seems I need to connect to the database through
    Dreamweaver in order to create my PHP pages. I don't know how to do
    it or if it is possible using an SSH (Navicat)
    Also I don't understand the whole "test server" thing. It was
    suggested I connect my Mac to a Windows machine to create a testing
    server. Is this really necessary? I have an external hard drive
    with tons of space. Can I use that? Are there any other options? I
    don't know a single Mac user who has a spare windows machine lying
    around.
    My site is ready to go but useless unless I can this
    database-access problem solved. I need to create PHP pages but
    cannot do it without some sort of access to my database.
    Please HELP!!!

    See if this helps:
    http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_05.html
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "farfalle" <[email protected]> wrote in
    message news:ff5t8j$da5$[email protected]..
    > Please, somebody help me!!
    >
    > I am on a Mac. I have my site up but can't use it
    because of the database
    > issues I am having.
    >
    > 1. I don't write code - hence my purchase of Dreamweaver
    > 2. My host will not allow me to connect to MySQL
    (server-side) and suggested I
    > try an SSH. I got Navicat.
    >
    > It seems I need to connect to the database through
    Dreamweaver in order to
    > create my PHP pages. I don't know how to do it or if it
    is possible using an
    > SSH (Navicat)
    >
    > Also I don't understand the whole "test server" thing.
    It was suggested I
    > connect my Mac to a Windows machine to create a testing
    server. Is this
    > really necessary? I have an external hard drive with
    tons of space. Can I use
    > that? Are there any other options? I don't know a single
    Mac user who has a
    > spare windows machine lying around.
    >
    > My site is ready to go but useless unless I can this
    database-access problem
    > solved. I need to create PHP pages but cannot do it
    without some sort of
    > access to my database.
    >
    > Please HELP!!!
    >

  • Flash builder 4.6 flex for mobile with mysql php and json

    I am trying to create an app that get data from online mysql server via php service and displays the data in a list
    I have been looking all over the internet but had no success in finding a working tutorial and i am frustrated
    can anyone help or direct me to a working tutorial please ?

    Watch the Online Video Course Flex 4.5 and PHP: Creating Data-Driven Applications

  • PHP and Dreamweaver Spry Menu

    I have been searching for help with this - I have been getting an "internal error" message when I submit the form. I was having an issue with it working but not receiving anything... so I changed the php code and now it's taking me to an error page. Need this fixed soon.... I just went to a networking meeting... please help.
    I've been reading other people's posts and I just don't know enough about php to know what to change. I know how to write HTML/XHTML and CSS but with the form, obviously that's going to be harder.
    I've pasted both pages below - if anyone can take a look and let me know. Thank you!
    -  C
    The Confirmation Page: (what's supposed to be there instead of the internal error.)
    <?php
    if(isset($_POST['email'])) {
    $email_to = "[email protected]";
    $email_subject = "Caity_FitzGerald_Designs_Contact_Form";
    $message=
    "Customer: ".$_POST['name'] . "\r\n" . "\r\n" .
    "\r\n" .
    "Email: ".$_POST['email'] . "\r\n" . "\r\n" .
    "Phonenumber: ".$_POST['phonenumber'] . "\r\n" .
    "BusinessName: ".$_POST['bizname'] . "\r\n" .
    "\r\n" .
    "Howtheyfound me: ".$_POST['referral'] . "\r\n" . "\r\n" .
    "Location: ".$_POST['location'] . "\r\n" . "\r\n" .
    "\r\n" .
    "Servicesinterested: ".$_POST['wantedservices'] . "\r\n" .
    $_POST['clientrequest']; $from=$_POST['email'];
    $headers="From:$from" . "\r\n";
    mail($to.$subject,$message,$headers);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Caitlin FitzGerald Designs</title>
    <!-- InstanceEndEditable -->
    <link href="stylesheet.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <!-- InstanceParam name="backgroundpage" type="boolean" value="true" -->
    </head>
    <body>
    <div class="container">
    <div class="header"><!-- end .header --><a href="index.htm"><img src="images/Caitlin-FitzGerald-Designs.png" alt="logo" width="508" height="298" class="imgcentered" /></a>
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="index.htm">Home</a></li>
    <li><a href="portfolio.htm">Portfolio</a></li>
    <li><a href="services.htm">Services</a> </li>
    <li><a href="contact.htm">Contact</a></li>
    </ul></div>
    </div>
    <div class="content"><!-- InstanceBeginEditable name="edit body" -->
    <p><img src="pics/surfboard-cutout.png" width="1000" height="750" alt="thanks" /></p>
    <!-- InstanceEndEditable -->
    <!-- end .content -->
    <div class="footer">
    <table width="26%" border="0" align="center" cellpadding="2" summary="Find us on these social networks and connect with us.">
    <tr>
    <td width="17%"><a href="https://www.facebook.com/CFitzDesigns" target="_blank"><img src="pics/facebook.png" width="42" height="42" alt="facebook" /></a></td>
    <td width="17%"><a href="http://www.linkedin.com/in/caityfitzgerald" target="_blank"><img src="pics/linkedin.png" width="42" height="42" alt="facebook" /></a></td>
    <td width="18%"><a href="https://twitter.com/FitzGeraldCaity" target="_blank"><img src="pics/twitterbird.png" width="43" height="42" alt="twitter" /></a></td>
    <td width="20%"><a href="http://pinterest.com/caitlindesigns/" target="_blank"><img src="pics/pinterest.png" width="44" height="44" alt="pinterest" /></a></td>
    <td width="20%"><a href="http://www.behance.net/Cfitz" target="_blank"><img src="pics/behance.jpg" width="44" height="43" alt="behance" /></a></td>
    <td><a href="http://bit.ly/12l8tfu" target="_blank"><img src="img/g+.png" width="39" height="39" alt="google+" /></a></td>
    </tr>
    <tr>
    <td colspan="6"> <div align="center">
    <p>Caitlin FitzGerald Designs<br />
    2013&copy; All rights reserved </p>
    </div></td>
    </tr>
    </table>
    <p><!-- end .footer --></p>
    </div>
    <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    <!-- InstanceEnd --></html>
    The Contact Form:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Caitlin FitzGerald Designs - Contact Me</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />
    <!-- InstanceEndEditable -->
    <link href="stylesheet.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- InstanceBeginEditable name="head" -->
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
    <!-- InstanceEndEditable -->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <!-- InstanceParam name="backgroundpage" type="boolean" value="true" -->
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header --><a href="index.htm"><img src="images/Caitlin-FitzGerald-Designs.png" width="508" height="298" class="imgcentered" /></a>
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.htm">Home</a>      </li>
          <li><a href="portfolio.htm">Portfolio</a></li>
          <li><a href="services.htm">Services</a>      </li>
          <li><a href="contact.htm">Contact</a></li>
          <p> </p>
        </ul>
      </div>
      <div class="content"><!-- InstanceBeginEditable name="edit body" -->
         <table border="0" cellspacing="5" cellpadding="0" width="100%">
          <tr>
            <td valign="top"><h1><strong>Contact</strong></h1></td>
          </tr>
          <tr>
            <td valign="top"><p>To contact me you can: call 805.291.1358 or <a href="mailto:caity&#64;caitydesignedthat.com" target="_blank">email me.</a> </p>
            <p>You can also fill out the form below and I will contact you.</td>
          </tr>
        </table>
          <form action="email_form.php" method="post" name="clientrequest" target="_blank" id="clientrequest">
          <p><span id="namefield">
            <label for="name">Name:</label>
            <input type="text" name="name" id="name" tabindex="1" />
          <span class="textfieldRequiredMsg">Please enter your name.</span></span><br /><span id="spryemail">
          <label for="email">Email:</label>
          <input type="text" name="email" id="email" tabindex="2" />
          <span class="textfieldRequiredMsg">An email address is required.</span><span class="textfieldInvalidFormatMsg">Please enter a valid email address.</span></span><br />
          <span id="sprytextfield7">
          <label for="phonenumber">Phone Number:</label>
          <input type="text" name="phonenumber" id="phonenumber" tabindex="3" />
    </span><br />
    Business Name<span id="biznamespry">
          <label for="bizname">:</label>
          <input type="text" name="bizname" id="bizname" tabindex="4" />
    </span>
    <br />
    <span id="sprytextfield5">
    <label for="referral">How did you hear about me?</label>
    <input type="text" name="referral" id="referral" tabindex="6" />
    </span><br />
    <span id="sprytextfield6">
    <label for="location">Where do you live?</label>
    <input type="text" name="location" id="location" tabindex="7" />
    <span class="textfieldRequiredMsg">Please tell us where you live.<br />
    <input type="text" name="textfield" id="textfield" />
    </span></span><br />
      <br />
      <span id="describespry">
      <label for="wantedservices">What services are you interested in?<br />
      </label>
      <textarea name="wantedservices" id="wantedservices" cols="45" rows="5" tabindex="7"></textarea>
      <span id="countdescribespry"> </span><span class="textareaRequiredMsg"><br />
        Please fill in a description.</span><span class="textareaMaxCharsMsg">Exceeded maximum number of characters.</span></span><br />
          </p>
          </fieldset>
          <input type="submit" name="Send" id="Send" value="Send" tabindex="9" />
          <input type="reset" name="clear" id="clear" value="Clear Form" tabindex="10" />
        </form>
      <p> </p>
        <p><a href="https://www.sitelock.com/verify.php?site=www.caitydesignedthat.com" onclick="window.open('https://www.sitelock.com/verify.php?site=www.caitydesignedthat.com','SiteLock','width=600, height=600,left=160,top=170');return false;" ><img alt="malware removal and website security" title="SiteLock"  src="http://shield.sitelock.com/sshield/www.caitydesignedthat.comhttp://shield.sitelock.com/sshield/www.caitydesignedthat.com"/></a><br />
    </p>
      <div id="sitelock_shield_logo" class="fixed_btm" style="bottom:0;position:fixed;_position:absolute;right:0;">
        <p> </p>
      <p> </p>
    </div>
        <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("spryemail", "email", {validateOn:["blur"]});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("namefield", "none", {validateOn:["blur"]});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("biznamespry", "none", {isRequired:false});
    var sprytextarea1 = new Spry.Widget.ValidationTextarea("describespry", {maxChars:1000, counterType:"chars_remaining", counterId:"countdescribespry", isRequired:false});
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {isRequired:false});
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "none", {isRequired:false});
    var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7", "none", {isRequired:false});
        </script>
      <!-- InstanceEndEditable -->
      <!-- end .content -->
      <div class="footer">
        <table width="26%" border="0" align="center" cellpadding="2" summary="Find us on these social networks and connect with us.">
          <tr>
            <td width="17%"><a href="https://www.facebook.com/CFitzDesigns" target="_blank"><img src="pics/facebook.png" width="42" height="42" alt="facebook" /></a></td>
            <td width="17%"><a href="http://www.linkedin.com/in/caityfitzgerald" target="_blank"><img src="pics/linkedin.png" width="42" height="42" alt="facebook" /></a></td>
            <td width="18%"><a href="https://twitter.com/FitzGeraldCaity" target="_blank"><img src="pics/twitterbird.png" width="43" height="42" alt="twitter" /></a></td>
            <td width="20%"><a href="http://pinterest.com/caitlindesigns/" target="_blank"><img src="pics/pinterest.png" width="44" height="44" alt="pinterest" /></a></td>
            <td width="20%"><a href="http://www.behance.net/Cfitz" target="_blank"><img src="pics/behance.jpg" width="44" height="43" alt="behance" /></a></td>
                  <td><a href="http://bit.ly/12l8tfu" target="_blank"><img src="img/g+.png" width="39" height="39" alt="google+" /></a></td>
          </tr>
          <tr>
            <td colspan="6"> <div align="center">
              <p>Caitlin FitzGerald Designs<br />
               2013&copy; All rights reserved </p>
            </div></td>
          </tr>
        </table>
        <p><!-- end .footer --></p>
      </div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    <!-- InstanceEnd --></html>
    I used a self-made template for both pages (as you'll see in the comments... but I don't think that should affect it..) None of the other pages have been having issues.

    Where is the closing bracket????
    <?php
    if(isset($_POST['email'])) { //NO CLOSING BRACKET
    $email_to = "[email protected]";
    $email_subject = "Caity_FitzGerald_Designs_Contact_Form";
    $message=
    "Customer: ".$_POST['name'] . "\r\n" . "\r\n" .
    "\r\n" .
    "Email: ".$_POST['email'] . "\r\n" . "\r\n" .
    "Phonenumber: ".$_POST['phonenumber'] . "\r\n" .
    "BusinessName: ".$_POST['bizname'] . "\r\n" .
    "\r\n" .
    "Howtheyfound me: ".$_POST['referral'] . "\r\n" . "\r\n" .
    "Location: ".$_POST['location'] . "\r\n" . "\r\n" .
    "\r\n" .
    "Servicesinterested: ".$_POST['wantedservices'] . "\r\n" .
    $_POST['clientrequest']; $from=$_POST['email'];
    $headers="From:$from" . "\r\n";
    mail($to.$subject,$message,$headers);
    ?>

  • Using MySql and PHP with Dreamweaver on a Mac

    Hello all,
    As always if the answers to these questions are obscenely
    obvious please humour me.
    I use XHTML and CSS in my websites and realise that it is
    time that I dabbled with SSI. So I've started using PHP.
    However, I have been following the installation directions of
    MySql and am running into problems. I am installing the relavent
    software and am then unable to find it on my Mac, the startup files
    are there but the actual MySql data appears to not be installed
    despite my computer telling me it is...... I am using a G3 running
    OSX 10.4 is this good enough? I noticed talk of needing a PowerPC
    or Intel mac. Is this the case?
    Also, would I need MySql installed on my actual computer if
    the my servers have it already? And does Dreamweaver 8 have both of
    these programs installed as standard?
    If you could help out I would be very appreciative as I would
    like to learn this stuff and I appear to be struggling at the
    outset....
    Cheers
    M.A

    M.A.Wilson wrote:
    > However, I have been following the installation
    directions of MySql and am
    > running into problems. I am installing the relavent
    software and am then unable
    > to find it on my Mac, the startup files are there but
    the actual MySql data
    > appears to not be installed despite my computer telling
    me it is...... I am
    > using a G3 running OSX 10.4 is this good enough? I
    noticed talk of needing a
    > PowerPC or Intel mac. Is this the case?
    MySQL is a relational database management system that
    comprises a
    database server and several utility programs. Although you
    install it
    like any other program on a Mac, the similarity stops there.
    First, the point about PowerPC and Intel Macs is that there
    are
    different versions of the MySQL installer for each type of
    processor.
    I'm pretty sure that a G3 is OK, but you must choose the
    PowerPC version
    of MySQL, not the 64-bit or x86 (Intel Mac) version.
    Once you have installed MySQL, you need to drag the
    MySQL.PrefPane icon
    from the disk image onto your System Preferences. This
    installs a
    Preference Pane that enables you to start and stop MySQL. The
    Preference
    Pane has an option to start up MySQL automatically, but in my
    experience, it doesn't work on Tiger. You need to open the
    Preference
    Pane, and click Start MySQL Server each time you start your
    computer.
    The best way to work with MySQL is to use a graphical
    interface, such as
    phpMyAdmin. As Osgood has mentioned, I have written a book
    about PHP and
    Dreamweaver, which goes into all the necessary details. It's
    also very
    Mac-friendly with separate instructions where necessary for
    PC and Mac.
    More details here:
    http://foundationphp.com/dreamweaver8/
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Dreamweaver CS5.5 Mobile Apps with PHP and MYSQL?

    Hello,
    I don't have Dreamweaver CS5.5 yet and I've been trying to search for information on this but I couldn't find any. I've been learning PHP and been developing with MYSQL with Dreamweaver CS5 but I wanted to know if I can use the same tags and everything if I would to build a Mobile App using the new Dreamweaver CS5.5 (http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-/dreamweaver-cs-55-jquery-mobile- pages/). I overlooked at the video and it seems pretty easy building an app. So is PHP and MYSQL easily integratable? Are there any examples that I might be able to check out?
    Thanks!

    No. PHP is a server-side scripting language that requires a server (or server-like environment) to run.
    An iPhone (or Android) application does not allow for a "built-in" server (which is resource intensive and has scary security implications). You just can't build an application with PHP/MySQL for a mobile device. Instead you can build a web service that your HTML/JavaScript mobile application can then communicate with. This is the only supported way you can use PHP/MySQL in a mobile app. Again: the PHP/MySQL should reside on a server and your HTML/JS mobile app can then communicate with that web service. That's what instapaper and other applications do.
    Frankly, just make a web application that's mobile device friendly and you'll:
    1) Avoid all the messiness of the app stores
    2) Have greater control over what your web app can do (don't have to tow the Apple/Google line)
    3) Have a web app that can work across mulitple mobile devices as well as standard web browsers (i.e. more audience = more $).
    4) Future proof your application (pushing updates to your server and everyone using your web app is updated)
    Otherwise, read-up on Adobe AIR and what it supports and remember, the best apps are written natively for the platform (i.e. want to write an app for an iPhone? Learn Objective-C and use xCode on a Mac. Want to write an app for Motorola Xoom? Learn the Android SDK and use inteliJ).

  • Problem when displaying images when working  with PHP, mysql and dreamweaver in a brower

    Hey Guys
    I am new to dynamic development but I already did some
    research and tutorials about how to get a dynamic web site working
    with PHP and Mysql in Dreamweaver. I set up a test page to view
    some content on it directly from the mysql database and it worked
    just fine in dreamweaver only when I pressed the
    live data view.
    When I tried to view the same page using the browser preview
    with firefox and internet explorer, plain text from the database
    was correctly displayed on the brower but the images were absent.
    In the mysql database I used the varchar as my picture data
    type field so that I will refer in dreamweaver in the data binding
    panel in the img.src to the picture column of my database.
    I anyone can tell me what am I doing wrong so that my
    pictures are not displayed in the browser when i click the browser
    preview facility in dreamweaver I would be very very and very
    pleased ! :)

    The odds are that it is the way that you have referenced the
    images rather
    than an issue with the database. If you have the images root
    relative like
    this "/images" then they will work in preview, and on the
    webserver, but
    will not view when looking at the file via localhost.
    If possible make the links page relative and then they should
    work fine.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "mariosal026" <[email protected]> wrote in
    message
    news:ea3nq2$9ol$[email protected]..
    > Hey Guys
    >
    > I am new to dynamic development but I already did some
    research and
    > tutorials
    > about how to get a dynamic web site working with PHP and
    Mysql in
    > Dreamweaver.
    > I set up a test page to view some content on it directly
    from the mysql
    > database and it worked just fine in dreamweaver only
    when I pressed the
    >
    live
    > data view.
    >
    > When I tried to view the same page using the browser
    preview with firefox
    > and
    > internet explorer, plain text from the database was
    correctly displayed on
    > the
    > brower but the images were absent.
    >
    > In the mysql database I used the varchar as my picture
    data type field so
    > that
    > I will refer in dreamweaver in the data binding panel in
    the img.src to
    > the
    > picture column of my database.
    >
    > I anyone can tell me what am I doing wrong so that my
    pictures are not
    > displayed in the browser when i click the browser
    preview facility in
    > dreamweaver I would be very very and very pleased ! :)
    >

  • How do I add an already built Shopping Cart  (PHP and MYSQL) application to a page in a Muse site?

    How do I add an already built Shopping Cart  (PHP and MYSQL) (Cartweaver 4) application to a page in a Muse site? Do I have to export the Muse site as Html to dreamweaver and them use the extension to bring the shooping cart in or can I do it directly in Muse?
    Message was edited by: mgv2048

    We have experimented with doing this with some good success. We have been working on adding Cartweaver to a Facebook page by essentially adding a Cartweaver store to Facebook in an iframe.  The "store" would be pages with just your basic product display, cart, and checkout functionality, with none of the "window dressing" - just use CSS to match the color and general look of the design it's being added to.
    The one problem with this for Facebook is when it comes time to check out toy have to leave Facebook and go to your server where an SSL is in place.  Fortunately in this situation this would not be the case, you can have an SSL installed to the root of your site and you'll be okay.
    This is an interesting project.  Give this a try and let me know how it goes and if you run into any snags, please make a post on the Cartweaver forums: http://forums.cartweaver.com - I'm really confident that this can work, and not only work, but work well.
    Looking forward to hearing how this goes, and being of what help we can.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • How can I include a MySQL table and records with the PUT of my Dreamweaver site?

    I am using .php to validate a user code against one of four codes that I am providing to potential clients.  They enter that code, along with a default user id and the appropriate page is then displayed for them.  Everything is working fine on the desktop.  I need to have this table and the records created on my remote server.  I tried saving the table in the Connections folder, but that didn't help.  Everytime I enter a code (valid or invalid) on the live site, I get the following message:  "Table 'boundsauctions_com.promocode' doesn't exist".  Is there someway to include the table and records in my Dreamweaver folders for the site? 
    Thanks for any help that you can offer.

    You can't.  Dreamweaver, or FTP for that matter has no connection to the MySQL database.  If you have created a MySQL database locally and now wish to move/copy it to your server you'll need to create a back up of your local database and then log into your database on the server and then restore that back up.
    An even easier way to do this, and if you are working with MySQL much at all  a good investement is to get the commercial version of Navicat MySQL - this is the best MySQL administrator I've found to date and is well worth the few bucks to buy it.  With Navicat you can connect to your local MySQL database and also create a connection to your remote database, then literally drag and drop your local database contents to copy them to your server. This function alone justifies buying Navicat. A huge time saver.   And no I do not work for or have any share or ties to Navicat.  I'd recommend something else if I knew of anything better, but so far I don't.
    Hope this helps. If you need any more details let me know.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    Shopping Cart for Adobe Dreamweaver
    available in PHP, ColdFusion
    Stay updated - http://blog.cartweaver.com

  • ANN: Setting up PHP and MySQL for newbies!

    We've recently released two new solution recipes to help
    designers make the
    jump to building dynamic sites. Each solution recipe
    describes step by step
    how to set up PHP and MySQL on your XP or Vista systems. You
    can find them
    on the Solution Recipe page:
    Installing PHP and MySQL on Windows Vista
    Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    Each of these Solution Recipes include PDFs that you can
    print out or read
    on screen.
    We also have steps outlined for the Mac in PDF format, one
    for 10.4.x and
    the other for 10.5.x:
    10.4.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    10.5.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    All content is freely available. Go get'em!
    Best - Joe
    Joseph Lowery
    VP of Marketing, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/

    Cool. I've bookmarked it for later.
    Thanks!
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Joseph Lowery" <[email protected]> wrote in
    message
    news:ftj87l$nem$[email protected]..
    > We've recently released two new solution recipes to help
    designers make
    the
    > jump to building dynamic sites. Each solution recipe
    describes step by
    step
    > how to set up PHP and MySQL on your XP or Vista systems.
    You can find them
    > on the Solution Recipe page:
    >
    > Installing PHP and MySQL on Windows Vista
    > Installing PHP and MySQL on Windows XP
    >
    http://www.webassist.com/professional/products/solutionrecipes.asp
    >
    > Each of these Solution Recipes include PDFs that you can
    print out or read
    > on screen.
    >
    > We also have steps outlined for the Mac in PDF format,
    one for 10.4.x and
    > the other for 10.5.x:
    >
    > 10.4.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    >
    > 10.5.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    >
    > All content is freely available. Go get'em!
    >
    > Best - Joe
    >
    > Joseph Lowery
    > VP of Marketing, WebAssist -
    http://www.webassist.com
    > Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    >

  • Set a max Upload quantity dreamwaver php and mysql

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

  • PHP, MySQL, Breadcrumbs and URL Parameters

    I'm working with several InterAKT extensions to buid a
    dynamic site. I have everything working except for Breadcrumbs --
    which are actually working except that I need to change the URL
    parameter which they are passing WITHOUT altering the recordset
    (which breaks the functionality).
    The site is constructed to include friendly URLS, so although
    all pages are loaded by PK of their category, I've used CONCAT()
    and REPLACE() along with Server-Side Includes from my Table (SSI
    from InterAKT) to generate my URLS.
    Example:
    category_ctg TABLE
    id_ctg name_ctg
    1 Jelly Beans
    2 Vanilla Nut Crunch Bar
    etc.
    For my dynamic menus and my hyperlinks, I pull from the db
    like this:
    SELECT *, CONCAT(REPLACE(name_ctg, ' ', '-'), '?id_ctg=',
    id_ctg) AS newurl FROM category_ctg
    This gives me a URL of
    index.php/Vanilla-Nut-Crunch-Bar?id_ctg=2
    (I also pull from the name_ctg field for my page titles and menu
    names, etc., without the CONCAT() so they read without the '-')
    But, with MX Breadcrumbs I'm limited to the way the php is
    hard-coded in terms of which fields are included: (id_ctg,
    id_parent_ctg and name_ctg) because the breadcrumbs are generated
    from a recordset.inc.php file.
    I can succesfully use the Breadcrumbs "out-of-the-box" and
    end up with this URL:
    index.php?id_ctg=2
    My code for above looks like this:
    <?php if ($totalRows_Breadcrumbs > 0) { // Show if
    recordset not empty ?>
    &gt; <a href="index.php?id_ctg=<?php echo
    $row_Breadcrumbs['id_ctg']; ?>"><?php echo
    $row_Breadcrumbs['name_ctg']; ?></a>
    <?php } // Show if recordset not empty ?>
    and while it works, it's loading a different URL than all my
    other menus and links.
    Alternatively, I can include the catgeory_ctg.name_ctg
    dynamic binding like this:
    <?php do { ?>
    <?php if ($totalRows_Breadcrumbs > 0) { // Show if
    recordset not empty ?>
    &gt; <a href="<?php echo
    $row_Breadcrumbs['name_ctg']; ?>?id_ctg=<?php echo
    $row_Breadcrumbs['id_ctg']; ?>"><?php echo
    $row_Breadcrumbs['name_ctg']; ?></a>
    <?php } // Show if recordset not empty ?>
    <?php } while ($row_Breadcrumbs =
    mysql_fetch_assoc($Breadcrumbs)); ?>
    which gives me a URL of:
    index.php/Vanilla%20Nut%20Crunch%20Bar?id_ctg=9
    Since I can't use CONCAT() value within my script and I can't
    have "%20" in my URLs, I'm trying to find a way of turning my URL
    into:
    index.php/Vanilla-Nut-Crunch-Bar?id_ctg=2
    Is there a way to include the CONCAT() function in the PHP
    script that's generating the URL?
    I've tried using variables in the header to call for a
    consistent URL, without any luck.
    Please keep in mind that my strong suit is design and that my
    working knowledge of PHP and MySQL are limited to what I can
    understand and re-create. I've been pulling out my hair for days on
    this, so some guidance would be
    greatly appreciated.

    The code generated by the Dreamweaver recordset navigation bar automatically adds any existing variables to the end of the query string. The following code (just above the DOCTYPE) comes from a recordset navigation bar on one of my pages:
    $queryString_listAuthors = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_listAuthors") == false &&
            stristr($param, "totalRows_listAuthors") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_listAuthors = "&" . htmlentities(implode("&", $newParams));
    $queryString_listAuthors = sprintf("&totalRows_listAuthors=%d%s", $totalRows_listAuthors, $queryString_listAuthors);
    I haven't tested this, but to eliminate the extra variables in the query string, comment out the whole of the if statement like this:
    $queryString_listAuthors = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_listAuthors") == false &&
            stristr($param, "totalRows_listAuthors") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_listAuthors = "&" . htmlentities(implode("&", $newParams));
    $queryString_listAuthors = sprintf("&totalRows_listAuthors=%d%s", $totalRows_listAuthors, $queryString_listAuthors);
    You will need to do that for each of your recordset navigation bars.

  • Problems with PHP and MySQLi server behaviors

    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy

    heduino wrote:
    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy
    There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to  thrid party developers to bring out extensions which replace them.
    What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
    Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli.

Maybe you are looking for

  • How do I get a time stamp with EACH text message?

    How do I get a time stamp with EACH text message?

  • TC wifi seen but no longer connecting

    I bought my time capsule 1 tb about 4-5 months back and it has worked flawlessly. Last night I taught a photography workshop and wifi was working fine for my presentation on my macbook pro. Today though, all of a sudden all wireless internet in our h

  • Collect responses online

    (New) Creative Cloud user with a FormsCentral Question. I accessed FormsCentral through Acrobat Pro. Created a form, and all was well. I went to save as a PDF and got an error message. Also attempted to collect responses online and got an error messa

  • Quick Guide/Intro for applying  PL-SQL onto OracleExpress?

    Hello, is there a quick guide for applying a PL-SQL script onto an existing Oracle Express installation (under WinXP) ? I just need a step-by-step guide on how to apply a sample PL-SQL script (e.g. with a CREATE TABLE statement) onto Oracle. Is there

  • Brushes are not working for lightnening

    My brushes do not work, for lightening.  I restet them and did control alt shift already.