Dreamweaver/ php recordsets

Hello,
I have a query which find featured products from the
database. There are three in total. These products are then
displayed in little boxes on the site, each with a different
background colour. Usually, I would just repeat the region to show
each product, but the background colour wouldnt change then.
What I wanted to do, was to say something like 'if this is
row 1, then use this colour as the background to the box, if its
row two, use this colour.. and so on.
Im ok at php, but by no means an expert so i need a bit of
help on this one! any advice would be appreciated.
Thanks :)

MissKristy wrote:
> I have a query which find featured products from the
database. There are three
> in total. These products are then displayed in little
boxes on the site, each
> with a different background colour. Usually, I would
just repeat the region to
> show each product, but the background colour wouldnt
change then.
Create three style rules in your style sheet. Name them
product1,
product2, and product3.
Just ahead of the repeat region code, insert this little code
block
outside the do... while loop:
<?php $counter = 1; ?>
Then inside the repeat region itself, use the counter to
build three
unique IDs for the rows:
<tr id="product<?php echo $counter++; ?>">...
</tr>
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • PHP recordset odd behavior

    I am an instructor at a technical college and I am using the
    Dreamweaver 8 with ASP, Coldfusion, and PHP training form the
    source book in my class. We are experiencing a strange issue when
    trying to create a PHP recordset.
    On page 310, when creating a recordset everything is fine
    except for one table in the database. We can see all 6 tables in
    the drop down list and can choose any one except tbl_tours. If we
    choose that one table we get an Unidentified Error message when
    testing the query. The really strange thing is we have already
    created recordsets from this table in previous lessons with no
    problem.
    Any ideas?
    Thanks
    Bongo

    On Thu, 11 Oct 2007 20:47:04 +0000 (UTC), "paulelwood"
    <[email protected]> wrote:
    > what I need to do is to display a field based on the
    user and password on the
    >receiving page, but I can't seem to get that to work. If
    I get rid of the
    >built-in user authentication and just send the login and
    password to the
    >receiving page as form variables, it works fine but then
    I don't have the error
    >page behavior. I'm not a database guy, just kind of
    floundering here.Any help
    >gratefully accepted.
    Not quite sure what you mean ("display a field") but it
    sounds like
    you want the receiving page to display some information about
    the
    person who has logged in?
    In that case, in the code on your login page, after login has
    been
    verified but before the redirection to the receiving page,
    you should
    set a session variable to be the id of the person logging in.
    Then on
    your receiving page query the database for the person with
    that id and
    retrieve whatever you want. For example, get their given name
    and
    display a personalised welcome to them.
    Hope this is what you meant?
    Steve Fleischer
    steve at flyingtigerwebdesign dot com
    Hong Kong

  • Make Checboxes In To Array In Dreamweaver (PHP)

    Hi guys, am designing a seat reservation system. i want the check boxes to represent the seats
    I want to know how to make each check boxes into array and how to group all the check boxes in a single canvas so that it will store multiple values in one single variable in the database column. there are other texboxes that i want to insert in the same form to get the use booking details.
    If am gona store multiple value in one column how do i identify the check box group?
    Dreamweaver PHP
    <form id="Bookings" name="Bookings" method="post" action="">
      <p>
        <input type="checkbox" name="A1[]" value="1" id="A1[]" />
        <input type="checkbox" name="A2[]" value="2" id="A2[]" />
        <input type="checkbox" name="Ab[]" value="3" id="Ab[]" />
        <input type="checkbox" name="A4[]" value="4" id="A4[]" />
      </p>
      <p>
        <label for="name"></label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="Phone_Number"></label>
        <input type="text" name="Phone_Number" id="Phone_Number" />
      </p>
      <p>
        <label for="E_Mail"></label>
        <input type="text" name="E_Mail" id="E_Mail" />

    Hi,
    I would look for a existing script like this:
    http://sourceforge.net/projects/freeseat/
    and implement it in your site, because it takes years of experience to develop something like that.
    These are only a examples I don't know the scripts, but you can look at Github and do a search:
    Example Github:
    https://github.com/fnazmul/Cinema_Seats_Booking_System
    David

  • Spry widget / php recordsets / repeatable regions

    okay this deals with the spry collapsiblepanel widget in cs3.
    I'm testing the ability to create a news feed with this feature
    paired with a php recordset. My issue involves the repeated widgets
    not working like the first one. I know it probably is a result of
    the region thats being repeated / the collapsible panel. Look at
    the code and this test site that i've worked up.
    test website the
    code is below...i've commented out the start and end of the
    repeated region.

    PHP, being a serverside code, will refresh the page each time there is a request made to the server. JavaScript (and Spry), being a client side code, does not have to send requests to the server and therefore allows you to change the data without a page refresh.
    Having said that, you need to have a Spry dataset in your Accordion panel.
    By following these steps, you will be well on your way to achieving what you want.
    Retrieve your data using PHP and place it in an HTML-table or similar outside of the Accordion panel
    Create a SpryHTMLDataSet based on the HTML-table
    Use the data from the Spry dataset to create a master/detail region in your Accordion panel
    Just a few questions before I go into details.
    Have you set up a connection to a database, thus be able to retrieve the data?
    Why do you need an Accordion panel to show your data?
    Have you got an online URL so that we can follow your code? Otherwise please include your code in your post.
    Please come back here with your answers and we shall try to help you on your way
    Ben

  • Create price range search function in php recordset

    Hi,
    On a continuation from a previous thread, I am finding that the expertise of the web designers on these forums is proving much more educational and beneficial than the vast numbers of books I have bought to setup a website for my property company. (Without sounding too sycophantic!).
    I have managed to create a working website where the properties in my database and their related images are pulled into a recordset on the live webpage and everything is working perfectly. I do however want to add some simple filters on the search page to narrow down the results from the database.
    I am finding that given one push or piece of coding I can work out the rest myself. Therefore, all I would like to do is create a price range drop down, where clients can select properties from the database in one of 3 categories: under £1m, £1m-£2m, and over £2m.
    As I understand it, I need two pages to do this, one html form page where the clients will input their search criteria with coding similar to:
    <form action="search_results.php" method="post" name="search" id="search" >
    Price Range:
    <select name="prop_price" id="select8">
    <option value="<1000000">             >£1,000,000                   </option>
    <option value="1000000-2000000">    £1,000,000 - £2,000,000</option>
    <option value=">2000000">             >£2,000,000                   </option>
    </select>
    <input name="search" type="submit" id="search" value="search">
    </form>
    (apologies for my messy coding - I am still new and not sure if certain fields arent required yet!).
    Then, I would need to create the search_results.php page which would give the results of properties in the database depending on the price range submitted. I have tried various different methods put online through the forums, but cannot seem to get anything post 2006, nor anything that has actually worked. I am using Dreamweaver CS5 and MySQL for my db.
    How do I incorporate the above search criteria into a dynamic php doc? The only way I have managed to get something working is to create a new page for each of the price variables -something which is incredibly inefficient, and hardly something that can be developed easily going forward.
    The php code I currently have that is retrieving all the properties from my database is as follows (connection name is test, recordset name is getDetails):
    <?php require_once('Connections/test.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $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;
    $maxRows_getDetails = 20; 
    $pageNum_getDetails = 0; 
    if (isset($_GET['pageNum_getDetails'])) { 
       $pageNum_getDetails = $_GET['pageNum_getDetails']; 
    $startRow_getDetails = $pageNum_getDetails * $maxRows_getDetails;
    mysql_select_db($database_test, $test);
    $query_getDetails = "SELECT id, prop_name, prop_price, country, post_code, short_desc, image FROM images order by prop_price DESC";
    $query_limit_getDetails = sprintf("%s LIMIT %d, %d", $query_getDetails, $startRow_getDetails, $maxRows_getDetails); 
    $getDetails = mysql_query($query_limit_getDetails, $test) or die(mysql_error());
    $row_getDetails = mysql_fetch_assoc($getDetails);
    if (isset($_GET['totalRows_getDetails'])) { 
       $totalRows_getDetails = $_GET['totalRows_getDetails']; 
    } else { 
       $all_getDetails = mysql_query($query_getDetails); 
       $totalRows_getDetails = mysql_num_rows($all_getDetails); 
    $totalPages_getDetails = ceil($totalRows_getDetails/$maxRows_getDetails)-1;
    ?>
    <table width="990" border="0" align="center" cellpadding="0" cellspacing="0"> 
         <tr>   
         </tr> 
         <?php do { ?> 
           <tr>   
             <td><img src="show_image.php?id=<?php echo $row_getDetails['id']; ?>"></td> 
             <td><?php echo $row_getDetails['prop_name']; ?></td>
             <td><?php echo $row_getDetails['prop_price']; ?></td>
             <td><?php echo $row_getDetails['short_desc']; ?></td>
             </tr> 
             <?php } while ($row_getDetails = mysql_fetch_assoc($getDetails)); ?> 
             </table> 
    <?php
    mysql_free_result($getDetails);
    ?>
    Essentially, I need to incorporate the WHERE function into my sql query, but how do I do this so that it is dependent on the clients submission on the search page.......?
    Sorry if this is incredibly easy, but I am at a complete loss now and cant try any more techniques from the various forums out there! I even downloaded the entire Zen cart framework just to see if I could find something in the vast numbers of php pages that came with it!
    Hope someone can help -
    Thanks
    Jack

    Hi Gunter,
    Thanks for your quick response. I thought I had it but not quite yet. I uploaded these pages into live browser but am only getting the following on the search results page:
    This is the case for all three parameters. As I have not yet uploaded all the properties into mysql, there are only 2 live ones in there, one is prop_price at 600,000 (int) and the other prop_price 2300000 (int). For the query to work, should this field in mysql be a different format?
    For your reference, the new show_results.php code is:
    <?php require_once('Connections/test.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $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;
    $maxRows_getDetails = 20;
    $pageNum_getDetails = 0;
    if (isset($_GET['pageNum_getDetails'])) {
       $pageNum_getDetails = $_GET['pageNum_getDetails'];
    $startRow_getDetails = $pageNum_getDetails * $maxRows_getDetails;
    if(isset($_POST['prop_price']))
    switch($_POST['prop_price'])
      case ("a"):
    $price_whereclause = ' WHERE prop_price < 1000000 ';
      break;
      case ("b"):
    $price_whereclause  = ' WHERE prop_price BETWEEN 100000 AND 200000 ';
      break;
      case ("c"):
    $price_whereclause  = ' WHERE prop_price < 2000000 ';
      break;
    else {
    $price_whereclause  = '';
    mysql_select_db($database_test, $test);
    $query_getDetails = "SELECT id, prop_name, prop_price, country, post_code, short_desc, image FROM images ".$price_whereclause." order by prop_price DESC";
    $query_limit_getDetails = sprintf("%s LIMIT %d, %d", $query_getDetails, $startRow_getDetails, $maxRows_getDetails);
    $getDetails = mysql_query($query_limit_getDetails, $test) or die(mysql_error());
    $row_getDetails = mysql_fetch_assoc($getDetails);
    if (isset($_GET['totalRows_getDetails'])) {
       $totalRows_getDetails = $_GET['totalRows_getDetails'];
    } else {
       $all_getDetails = mysql_query($query_getDetails);
       $totalRows_getDetails = mysql_num_rows($all_getDetails);
    $totalPages_getDetails = ceil($totalRows_getDetails/$maxRows_getDetails)-1;
    ?>
    <table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr>  
         </tr>
         <?php do { ?>
           <tr>  
             <td><img src="show_image.php?id=<?php echo $row_getDetails['id']; ?>"></td>
             <td><?php echo $row_getDetails['prop_name']; ?></td>
             <td><?php echo $row_getDetails['prop_price']; ?></td>
             <td><?php echo $row_getDetails['short_desc']; ?></td>
             </tr>
             <?php } while ($row_getDetails = mysql_fetch_assoc($getDetails)); ?>
             </table>
    <?php
    mysql_free_result($getDetails);
    ?>
    I know its very cheeky, but assuming you can help with fixing this, where in the coding would I insert a "No properties returned. Please try another query" response should the db not have anything in the set parameters (instead of the symbol currently being displayed).
    Again thanks so much for all your help.
    Jack

  • PHP Recordset error

    When I create a recordset in php it creats a function
    GetSQLValueString, which I assume is normal, the problem occurs
    when I want to edit that Recordset every time I do it recreates
    that function so then I have 2 and so on and so forth.
    Deleting the extra functions fixes the problem but it's
    really starting to annoy me and I was wondering if this has happen
    to any one else and if there was a patch or fix for this?
    Thanks

    "northpawjustice" <[email protected]> wrote
    in message
    news:e61l7s$pni$[email protected]..
    > When I create a recordset in php it creats a function
    GetSQLValueString,
    > which
    > I assume is normal, the problem occurs when I want to
    edit that Recordset
    > every
    > time I do it recreates that function so then I have 2
    and so on and so
    > forth.
    > Deleting the extra functions fixes the problem but it's
    really starting to
    > annoy me and I was wondering if this has happen to any
    one else and if
    > there
    > was a patch or fix for this?
    Unfortunately, this is the patch. It has a lot of problems.
    Other problems
    with this function: Dreamweaver adds it whether it's needed
    or not, and DW
    adds it for every parameter whether you want to use it or
    not. It also
    prevents the use of dynamic SQL and dynamic sorting.
    Tom

  • Dreamweaver MySQL recordset connection problem

    Hi,
    I'm trying to create a recordset for the first time in
    Dreamweaver MX but am having problems getting the connection with
    the database to work.
    I have set up a MySQL database on my server (which I have
    checked and is OK), checked that PHP is running and have connected
    Dreamweaver to the server successfully ( in "Edit Sites" the
    "remote info" & "testing server" tests show a successful
    connection).
    When I try to connect to the database I get this sequence of
    events:
    1. Dialigue box: "Retrieving information from public_html"
    2. Dialigue box: "Waiting for server" (with progress bar)
    3. Dialigue box: "Dreamweaver cannot determine the remote
    server time. The Select Newer and Synchronise commands will not be
    available."
    4. Spinning ball for a few minutes (I'm using Mac OSX)
    5. back to "Waiting for server" dialogue box which remains
    for ages, eventually I click "cancel"
    6. "An unexpected error occurred"
    If anyone can shed any light on what I might be missing I
    would appreciate it greatly.
    Thanks - Zaphodz

    I am a newby to databases and am having a similar problem
    with asp and my remote sql database. My hosting provider told me to
    use this script:
    <%
    Dim DBName,DBUser,DBPass,objRS,objConn
    DBName="cham_members"
    DBUser="cham_member"
    DBPass="mypassword"
    Set objConn=Server.CreateObject("ADODB.Connection")
    objConn.ConnectionString="DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database="&DBName&";UID="&DBUser&";pwd="&DBPass&";"
    objConn.Open
    Set objRS=Server.CreateObject("ADODB.Recordset")
    %>
    Since that code doesn't work with DreamWeaver's Databases
    panel Custom Connection String dialogue box I came up with this
    one:
    DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database=cham_members;UID=cham_member;PWD=mypassword;objConn.Ope n
    Set objRS=Server.CreateObject(ADODB.Recordset)
    It connected but doesn't show my tables. I followed all the
    advice I found here;
    1. Connect using the "Use passive FTP"
    2. Corrected a few illegal hyphens in my database.
    3. Tried MySQL 127.0.0.1:3306 which would not connect at all
    4. Remove Connection Scripts. No change.
    5. I have been running DreamWeaver 7.01 update.
    I noticed the database connection names come up in the
    "Connections" folder so I opened the file it had just created and
    pasted in the script my hosting company gave me. Still no luck. I
    am determined to learn to create dynamic websites so I really
    appreciate your help.
    Thanks, Ann Y.

  • Dreamweaver, php-xml bug

    I have a simple php file that generates an xml file. When I
    save this file and close it, dreamweaver changes some of the
    formatting when I reopen the file. Specifically, dreamweaver
    de-capitalizes some of the text in the document.
    Example:
    The code:
    $this->xml_request = '
    <PickupType>
    <Code>01</Code>
    </PickupType>';
    is converted to
    $this->xml_request = '
    <PickupType>
    <code>01</code>
    </PickupType>';
    after the file is saved, closed, and reopened. Note the Code
    tag has been chanced to code, which breaks the API I'm working
    with. This xml is always within php code as above as I've been
    using it..
    This happens on several fields, Code and Address so far, and
    happens to the same fields every time, no matter the document, or
    how many times they appear in the document. No other tag names are
    affected as far as I've found. I've tried completely uninstalling,
    removing all configuration files, and re-installing Dreamweaver and
    get the exact same affect every time.
    I really need to get this bug / mis-configuration fixed. Any
    suggestions would be greatly appreciated.
    This is CS3 (DW9) running on XP Pro.

    jestep,
    In Preferences > Code Format, make sure that the "Override
    case of"
    settings for "Tags" is turned off.
    HTH,
    Randy
    > I have a simple php file that generates an xml file.
    When I save this file and
    > close it, dreamweaver changes some of the formatting
    when I reopen the file.
    > Specifically, dreamweaver de-capitalizes some of the
    text in the document.
    >
    > Example:
    >
    > The code:
    > $this->xml_request = '
    > <PickupType>
    > <Code>01</Code>
    > </PickupType>';
    >
    > is converted to
    >
    > $this->xml_request = '
    > <PickupType>
    > <code>01</code>
    > </PickupType>';
    >
    > after the file is saved, closed, and reopened. Note the
    Code tag has been
    > chanced to code, which breaks the API I'm working with.
    This xml is always
    > within php code as above as I've been using it..
    >
    > This happens on several fields, Code and Address so far,
    and happens to the
    > same fields every time, no matter the document, or how
    many times they appear
    > in the document. No other tag names are affected as far
    as I've found. I've
    > tried completely uninstalling, removing all
    configuration files, and
    > re-installing Dreamweaver and get the exact same effect
    every time.
    >
    > I really need to get this bug / mis-configuration fixed.
    Any suggestions would
    > be greatly appreciated.
    >

  • Issue in Dreamweaver PHP pages from the PHP template

    I am learning to develop and publish a web catalog with a shopping cart feature attached. I am using PHP and MySQL as the tools to build this data driven website. However after creating the catalog list within the PHP template and needing the list as the menu within the sidebar of the webpages, the catalog list shows in the PHP template in Dreamweaver. But once I try to create a sub page from the PHP template, the list and all the contents does not show in the preview. After much checks, there is a issue with the sidebar class of the div, the issue is that a message shows that "Any content that does not fit in a fixed-width or -height box causes the box to expand to fit the content rather than letting the content overflow." I have tried to put the overflow:auto or overflow:hidden but to no success. How can get the catalog list to show without manually entering the over 50 categories that is already entered in the MySQL database? The template uses the 2 column fixed, sidebar, header and footer layout.

    It's a little hard to understand your question and its context. Can you please upload this page and give us a link so we can see what you are describing?

  • Setting up MAMP and Dreamweaver - PHP - URL Not Found

    Hello,
    I'm running into a seemly simple problem, but I just can't figure out the cause. I wanted to test a php file. I installed MAMP on my Mac 10.6.8 with all the default settings...Apache port 8888, MySQL port 8889 and document root /Applications/MAMP/htdocs.
    In Dreamweaver CS5.5, the settings are: Site Name: PHP Testing; Local Site Folder: /Applications/MAMP/htdocs; Server Name: Local Testing; Connect using: Local/Network; Server Folder: /Applications/MAMP/htdocs; Web URL: http://localhost:8888/. Testing server model is selected as PHP MySQL.
    In the htdocs folder, I have a simple timetest.php with php echoing the system time. When I preview in a browser or even do Live View in Dreamweaver, the URL is "http://localhost:8888/timetest.php", it's giving me the error "Not Found. The requested URL/timetest.php was not found on this server".
    Am I missing something simple?
    Thank you!

    Oops, I guess the images didn't show.

  • Dreamweaver 8 recordset, selecting table

    In Dreamweaver 8, when I go to set up a recordset, in the
    recordset dialog box, the "table" dropdown box indicates a path to
    the table in the database instead of listing all the tables in the
    database.
    ie
    C:\CFusionMX7\wwwroot\websites\mannsUpdaterServer\vehicles\mannsphotos.tblphotos
    This did not happen to me in any previous Dreamweaver from
    UltraDev to MX2004.
    What do I do to configure Dreamweaver (or possibly
    Coldfusion) to show the tables of the database in the table dialog
    box instead of the path?
    The SQL should look like this:
    <cfquery datasource="mannsphotos">
    UPDATE tblphotos
    SET Subject=
    Not this:
    <cfquery datasource="mannsphotos">
    UPDATE
    C:\CFusionMX7\wwwroot\websites\mannsUpdaterServer\vehicles\mannsphotos.tblphotos
    SET Subject=
    Your help is greatly appreciated
    Thank you,
    Barry

    It is caused by a bug in the CF7.01 updater that affect
    access databases.
    The work around is to change the database type in the CF
    administrator from
    Access to Access with Unicode.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "fused" <[email protected]> wrote in message
    news:e81l8j$q25$[email protected]..
    > In Dreamweaver 8, when I go to set up a recordset, in
    the recordset dialog
    > box,
    > the "table" dropdown box indicates a path to the table
    in the database
    > instead
    > of listing all the tables in the database.
    > ie
    >
    C:\CFusionMX7\wwwroot\websites\mannsUpdaterServer\vehicles\mannsphotos.tblphotos
    >
    > This did not happen to me in any previous Dreamweaver
    from UltraDev to
    > MX2004.
    >
    > What do I do to configure Dreamweaver (or possibly
    Coldfusion) to show the
    > tables of the database in the table dialog box instead
    of the path?
    >
    > The SQL should look like this:
    > <cfquery datasource="mannsphotos">
    > UPDATE tblphotos
    > SET Subject=
    >
    > Not this:
    >
    > <cfquery datasource="mannsphotos">
    > UPDATE
    >
    C:\CFusionMX7\wwwroot\websites\mannsUpdaterServer\vehicles\mannsphotos.tblphotos
    > SET Subject=
    >
    > Your help is greatly appreciated
    > Thank you,
    > Barry
    >
    >

  • "Adobe Dreamweaver PHP Training from David Powers

    “Adobe® Dreamweaver® CS5 with PHP Training from the Source  David Powers
    Lesson 7 Validating Input on the Server
    I have reached page 445, and become completely stuck - I've been about three weeks trying to sort the problem but cant get anywhere.  Not sure what to do from here so any advice would be really appreciated.  The problem:
    I have completed the script exactly as instructed, when I go live (local sever), I get a blank screen, OK, does not display.  I am sure this is something simple but I have done all the fault finding and am out foxed.  I know the local server works OK - I completed chapter 6 successfully - I can also run a php test page from the local folder that the file is stored in. i.e provictis/phpcs5.  I have saved my ZendFraework in a separate location as advised. i.e. User/SPENNY/...    
    This is the basic code:
    <?php
    $library='/Users/SPENNY/ZendFramework/library';
    set_include_path(get_include_path() . PATH_SEPARATOR .
    $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader=Zend_Loader_Autoloader::getInstance();
    if ($loader) {
              echo 'ok';
    } else {
              echo 'Huston we have a blinkin problem, but do not panic we will get things sorted';
    Gareth

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • Dreamweaver/PHP/MySQL

    I am so far out on the limb of my techno capability that if I
    even think of leaning forward I will fall into the abyss.
    Am using Dreamweaver MX 2004 to create PHP
    view/add/update/delete forms to connect to a MySQL 5.0 database
    hosted by HotZona.com. Use PhpMyAdmin to set up and define the
    tables (about 20 tables). All of the work I have done so far has
    been done inside of Dreamweaver MX 2004. Have not modified or
    inserted any original code in any of the Php files generated so
    far.
    Have been able to setup view/add/update/delete forms for each
    table. That took me some time and a major learning curve. Oh, and
    that was after spending a month figuring out what happened to the
    DW connection to the MySQL database.
    Some of the tables are lists to be used as lists in other
    tables. That is where I am now stumped.
    I can set up (useing DW) an add form for a table that uses
    another table for a list in one field. It shows properly in the add
    form. But, when you look in the table using PhpMyAdmin, the field
    in the table does not contain the value of the list item selected.
    I've made a couple more changes so I may have licked this one.
    But, I cannot figure out how to use DW to pull up the
    sub-list value in vew, update or delete forms. Any suggestions on
    how to do this in DW or do I have to write the code independent of
    DW?
    Any suggestions?
    Thanks
    Mike Garey

    hi ,
    you can always try the macromedia devnet sites , they have
    ongoing tutorials and discussions on all areas, including php with
    dreamweaver8.
    http://www.adobe.com/devnet/topics/php.html
    be aware though that some of the tutorials require the use of
    third party php extensions, like interakt products, which is a
    shame because most of them are expensive to buy. But they are still
    worth a read.
    hope this is some help.
    ted.

  • Dreamweaver PHP/mySQL poll problem?

    Hi,
    I'm a PHP/mySQL noob who's using some of Dreamweaver's 8
    (8.2) out-of-box Update server behaviors to update a database of
    results for a poll. I know there's a lot of free polling apps out
    there but I need to have the poll show up in another page as
    opposed to being refreshed/displayed in the same page/content area.
    I've successfully built the backend in phpMyAdmin and I'm
    able to list the database contents and do basic updates to the poll
    questions and answers. However, I've been unable to pass an
    incremented result value via a Dreamweaver radio button group
    (which is the normal poll format) without previous unselected
    results being overwritten.
    When an answer is selected the result is indeed incremented
    and is displayed in the Result Listing but unfortunately it also
    overwrites any preexisting data for that poll and replaces it with
    zero. For example:
    Question:
    Answer a) 0
    Answer b) 0
    Answer c) 1 (this would be the value that was selected)
    Answer d) 0
    If c is selected again the value is stored and incremented
    and the value is now 2. However, if that value is not selected,
    then another value is incremented and c would be wiped. I've even
    resorted to trying to use javascript to maintain the original state
    but to no avail I was just previously incrementing the inline php
    radio button value and/or assigning different names to each of the
    radio buttons. This, of course, allows people to select multiple
    values which runs contrary to the whole idea behind radio buttons,
    but I thought I'd see if that worked . Anyway, when the radio group
    is assigned the same value it merely increments everything.
    example:
    http://www.dailydatum.com/funFacts/funFactsListingSingleUpdate15.php
    As you can see, i'm up to version 15 and gritting me teeth,
    lol. Any help would be mighty appreciated.
    Mario

    hi ,
    you can always try the macromedia devnet sites , they have
    ongoing tutorials and discussions on all areas, including php with
    dreamweaver8.
    http://www.adobe.com/devnet/topics/php.html
    be aware though that some of the tutorials require the use of
    third party php extensions, like interakt products, which is a
    shame because most of them are expensive to buy. But they are still
    worth a read.
    hope this is some help.
    ted.

  • Help with Mac Dreamweaver PHP

    Well, I finally have PHP embedded within HTML working however the directory structure is totally confusing me.  I place files is /MAMP/htdocs and yet nothing works unless I add /MAMP/htdocs/htdocs and place the index and other php files ALSO in there.  I must open the ones in /MAP/htdocs and yet when I run them using my test server the files in /MAMP/htdocs/htdocs are the ones that are actually used.
    My configuration in SITES is
    Test Server
    local/network
    /Applciations/MAMP/
    http://localhost:8888/
    I would appreciate help understanding how to properly configure DreamWeaver SITE so that I can place all files in the MAMP/htdocs directory and eliminate the reducntant one.
    Thanks,
    Rick

    If you're using MAMP, your DW local site folder should be something like this:
    /Applications/MAMP/htdocs/sitename
    Because htdocs is the default folder MAMP routes to as localhost. Whatever site you have within htdocs folder will be suffixed with localhost in your browser for testing.
    For example, your site files (working files) can be put in a folder and that folder should be placed within 'htdocs' folder in MAMP Application folder.
    Say, you have a folder called 'test' containing index.php and this folder is placed within htdocs, your DW local site folder will be:
    /Applications/MAMP/htdocs/test
    To check this in browser, you'll simply enter
    http://localhost:8888/test
    This will run the index.php file within test folder by default.
    Your testing server can be the same as 'localhost:8888/test' for the site.
    If you want your Remote FTP also configured, enter your webhost's details and get that configured.
    -ST

Maybe you are looking for