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.

Similar Messages

  • 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.

  • Php mySQL filtering problem...really desperate

    Hi
    I have a live site that is currently causing me some issues
    It is a fashion site that sends the product information that is pulled in from sevaral table to the checkout.. the issue i am having is the incorrect stock id is being sent to the checkout so when it returns from the gateway it is updating the wrong stock levels.
    What is happening currently is the stockID from the first size is being sent.
    what i have is the following tables
    table 1 - beauSS13_products
    ProductID
    CatID
    table 2 - beauSS13_Cat
    catID
    table3 - beauSS13_Stock
    StockID
    ID (this was named like this incorrectly) but this joins with ProductID
    SizeID
    Stock
    beauSS13_SizeList
    SizeID
    Size
    the SQL is
    $var1_rsProduct = "-1";
    if (isset($_GET['ProductID'])) {
      $var1_rsProduct = $_GET['ProductID'];
    mysql_select_db($database_beau, $beau);
    $query_rsProduct = sprintf("SELECT * FROM beauSS13_Cat, beauSS13_products, beauSS13_Stock, beauSS13_SizeList WHERE beauSS13_products.CatID = beauSS13_Cat.catID AND beauSS13_products.ProductID = beauSS13_Stock.ID AND beauSS13_Stock.SizeID = beauSS13_SizeList.SizeID AND beauSS13_products.ProductID = %s AND beauSS13_Stock.Stock != 0 ", GetSQLValueString($var1_rsProduct, "int"));
    i think beauSS13_products.ProductID = beauSS13_Stock.ID shouldnt be there ( but am not sure what it should have )
    I need to identify the Unique Stock ID from table3 - beauSS13_Stock
    basically cant get my head round the logic...
    if i remove beauSS13_products.ProductID = beauSS13_Stock.ID
    then in the
    select list
    <select name="SelectSize" id="SelectSize">
            <option value="Select Size">Select Size</option>
            <?php
    do { 
    ?>
            <option value="<?php echo $row_rsProduct['Size']?>"><?php echo $row_rsProduct['Size']?></option>
            <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
          </select>
    it outputs all sizes from the ProductID and not just from the selected item
    i have just tried
          <select name="SelectSize" id="SelectSize">
            <option value="Select Size">Select Size</option>
            <?php
    do { 
    ?>
            <option value="<?php echo $row_rsProduct['Size']?>"><?php echo $row_rsProduct['Size']?><?php echo $row_rsProduct['StockID']; ?></option>
            <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
          </select>
    and adding <?php echo $row_rsProduct['StockID']; ?>
    i can see the correct StockID is showing in the size menu but i just need to get that to send to cart
    this is the code that sends the details to the cart
    $XC_editAction1 = $_SERVER["PHP_SELF"];
    if (isset($_SERVER["QUERY_STRING"])) $XC_editAction1 = $XC_editAction1 . "?" . $_SERVER["QUERY_STRING"];
    if (isset($_POST["XC_addToCart"]) && $_POST["XC_addToCart"] == "form1") {
      $NewRS=mysql_query($query_rsProduct, $beau) or die(mysql_error());
      $XC_rsName="rsProduct"; // identification
      $XC_uniqueCol="ProductID";
      $XC_redirectTo = "";
      $XC_redirectPage = "../cart.php";
      $XC_BindingTypes=array("RS","RS","FORM","FORM","RS","RS","RS","NONE");
      $XC_BindingValues=array("StockID","ProductID","SelectSize","Quantity","Product","Price"," Stock","");
      $XC_BindingLimits=array("","","","","","","","");
      $XC_BindingSources=array("","","","","","","","");
      $XC_BindingOpers=array("","","","","","","","");
      require_once('XCInc/AddToXCartViaForm.inc');

    >>Why do you think that?
    because it was looking for the specific record, but having added <?php echo $row_rsProduct['StockID']; ?> to the select list it needs to be there
    >>You are joining 4 tables so you need 3 join conditions. If that's the correct relationship ( and only you will know that) then the SQL is correct.
    yes that is the way the joins are meant to be
    >>The problem is most likely how you are assigning values to the cart. When the user selects a color, how is the associated stock id bound to the array?
    its sizes they select but same thing, in the above code that the thing i need to pass that value to the cart. the way i have it at the moment is in the code above
    i have icluded the full code below to show you how its working
    // *** X Shopping Cart ***
    $useSessions = false;
    $XCName = "beauloves";
    $XCTimeout = 1;
    $XC_ColNames=array("StockID","ProductID","Size","Quantity","Name","Price","Stock","Total") ;
    $XC_ComputedCols=array("","","","","","","","Price");
    require_once('XCInc/XCart.inc');
    $var1_rsProduct = "-1";
    if (isset($_GET['ProductID'])) {
      $var1_rsProduct = $_GET['ProductID'];
    mysql_select_db($database_beau, $beau);
    $query_rsProduct = sprintf("SELECT * FROM beauSS13_Cat, beauSS13_products, beauSS13_Stock, beauSS13_SizeList WHERE beauSS13_products.CatID = beauSS13_Cat.catID AND beauSS13_products.ProductID = beauSS13_Stock.ID AND beauSS13_Stock.SizeID = beauSS13_SizeList.SizeID AND beauSS13_products.ProductID = %s AND beauSS13_Stock.Stock != 0 ", GetSQLValueString($var1_rsProduct, "int"));
    $rsProduct = mysql_query($query_rsProduct, $beau) or die(mysql_error());
    $row_rsProduct = mysql_fetch_assoc($rsProduct);
    $totalRows_rsProduct = mysql_num_rows($rsProduct);
    mysql_select_db($database_beau, $beau);
    $query_rsCategory = sprintf("SELECT * FROM beauSS13_products WHERE
    beauSS13_products.CatID = (SELECT CatID from beauSS13_products WHERE beauSS13_products.ProductID = %s)", GetSQLValueString($var1_rsProduct, "int"));
    $rsCategory = mysql_query($query_rsCategory, $beau) or die(mysql_error());
    $row_rsCategory = mysql_fetch_assoc($rsCategory);
    $totalRows_rsCategory = mysql_num_rows($rsCategory);
    //  *** Add item to Shopping Cart via form ***
    $XC_editAction1 = $_SERVER["PHP_SELF"];
    if (isset($_SERVER["QUERY_STRING"])) $XC_editAction1 = $XC_editAction1 . "?" . $_SERVER["QUERY_STRING"];
    if (isset($_POST["XC_addToCart"]) && $_POST["XC_addToCart"] == "form1") {
      $NewRS=mysql_query($query_rsProduct, $beau) or die(mysql_error());
      $XC_rsName="rsProduct"; // identification
      $XC_uniqueCol="ProductID";
      $XC_redirectTo = "";
      $XC_redirectPage = "../cart.php";
      $XC_BindingTypes=array("RS","RS","FORM","FORM","RS","RS","RS","NONE");
      $XC_BindingValues=array("StockID","ProductID","SelectSize","Quantity","Product","Price"," Stock","");
      $XC_BindingLimits=array("","","","","","","","");
      $XC_BindingSources=array("","","","","","","","");
      $XC_BindingOpers=array("","","","","","","","");
      require_once('XCInc/AddToXCartViaForm.inc');
    function DoFormatCurrency($num,$dec,$sdec,$sgrp,$sym,$cnt) {
      setlocale(LC_MONETARY, $cnt);
      if ($sdec == "C") {
        $locale_info = localeconv();
        $sdec = $locale_info["mon_decimal_point"];
        $sgrp = $sgrp!="" ? $locale_info["mon_thousands_sep"] : "";
        $sym = $cnt!="" ? $locale_info["currency_symbol"] : $sym;
      $thenum = $sym.number_format($num,$dec,$sdec,$sgrp);
      return $thenum;
    then below is the form that sends the information to the cart
    <form id="form1" name="form1" method="post" action="<?php echo $XC_editAction1; ?>">
    <select name="SelectSize" id="SelectSize">
            <option value="Select Size">Select Size</option>
            <?php
    do { 
    ?>
            <option value="<?php echo $row_rsProduct['Size']?>"><?php echo $row_rsProduct['Size']?></option>
            <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
          </select>
          <select name="Quantity">
            <option value="Select Quantity">Select Quantity</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
          </select>
    <input type="image" src="../images/SS13AddToCart.jpg" border="0" name="submit"/>
    <input type="hidden" name="XC_recordId" value="<?php echo $row_rsProduct['ProductID']; ?>" />
          <input type="hidden" name="XC_addToCart" value="form1" />
          </form>

  • Dreamweaver php mysql date

    I have created a database in mysql 5 and I have also created
    a basic input record form. I am using Dreamweaver to create web
    pages, but I am having a little trouble with the date function.
    I am trying to figure out how to have "todays date"
    automatically input into the mysql database without user input in
    that field. Can anyone help?

    Sorry that it took me so long to respond top your post, but I
    have been trying a lot of things out.
    First off, I understand exactly what you were saying and it
    works on one page, but not on another. Here's the deal:
    the page that it works on is a project input page where the
    code is pretty much what you have already showed me. It works
    perfectly using the NOW()
    The other page is an update page, but the update code is
    writen differently, for example:
    UPDATE table SET field1=%s, field2=%s
    and in this script, the NOW() does not work.
    I want the date to be auto input into a different field and
    also I want the value "Y" to be input into another field once the
    update record buton has been pressed

  • Dynamic Dropdown / PHP / MySQLi / Javascript Problem

    I have 2 pages, namely main.html and list.php The Main Pageincludes the following code and consists of a dropdown that i want to pull some database records into by calling the function fillCategory contained in list.php
    Content on main.html
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <head>
    <title>Page Title</title>
    <script language="javascript" src="list.php"></script>
    </head>
    <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000" onload="fillCategory();">
    <FORM name="drop_list" action="yourpage.php" method="POST" >
    <SELECT NAME="Category" >
    <Option value="">Category</option>
    </SELECT> 
    </form>
    </body>
    </html> 
    Content of list.php
    <?php 
    require_once('mysqli_connect.php');
    echo "
    function fillCategory(
    $q="select * from category"; 
    echo mysqli_error($dbc); 
    $r=@mysqli_query($dbc,$q); 
    while($row=mysqli_fetch_array($r,MYSQLI_ASSOC)){
    echo "addOption(document.drop_list.Category, '$row[cat_id]', '$row[category]');";
    ?> 
    I know that records are being pulled from the MySQL database since when i view 127.0.0.1/list.php i can see the following diplayed on the page: 
    function fillCategory( addOption(document.drop_list.Category, '1', 'Sport');addOption(document.drop_list.Category, '2', 'Music');addOption(document.drop_list.Category, '3', 'Art'); 
    which are the contents (Sport, Music, Art) that i'd like to appear in my dropdown. However, i suspect that i shouldn't see the above being displayed in list.php Instead, it should probably be passed to main.html "unseen". Can anyone point out the probable error in my syntax. I can provide more detail on the database structure if it will help. 
    Thanks,
    Mark

    I think that this is the line in error:
    <script language="javascript" src="list.php"></script>
    The <script> tag is generally used to include client-side script. I believe that PHP will recognize on the server-side, but you need to change "javascript" to "php". You may want to use a PHP include or require statement, instead.
    Also, you might need to remove the "<?php" and "?>" delimiters from list.php.
    HTH,
    Randy

  • Leopard PHP MySQL socket problems

    I'm running a default Mac OS X 10.5 Apache2 installation locally, with PHP and MySQL tacked on. I'm running into some trouble running MySQL queries from PHP, namely:
    Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
    It appears that PHP was compiled with the configuration command '--with-mysql-sock=/var/mysql' but in Terminal the mysqladmin binary reports the UNIX socket as /tmp/mysql.sock. A check reveals that there is indeed a /tmp/mysql.sock, but no /var/mysql/mysql.sock. This appears to be one of those directory differences between Darwin and the standard MySQL distribution.
    Anyhow, I really don't know the best way to attempt to patch this up even after reading suggestions in the MySQL manual. Setting up an option file for mysql to point to /var/mysql didn't improve matters, nor did explicitly setting socket settings in my PHP config file.
    I'm more of a front-end developer not well versed in back end configuration jazz, so any input would be appreciated.

    the other way to fix this is to edit /etc/php.ini and set the following:
    mysql.default_port = /tmp/mysql.sock
    mysqli.default_port = /tmp/mysql.sock
    mysql.default_sock = /tmp/mysql.sock
    mysqli.default_sock = /tmp/mysql.sock

  • PHP MySQL sites created by dreamweaver mx 2004 crash on safari

    Hello,
    The title says it all, but i will elaborate.
    I develop PHP, MySQl driven database websites, I use
    Dreamweaver MX 2004 and I work on a macintosh, using both safari
    version 2 and 3.
    i have noticed that whenever I post a database item (add,
    edit to table) my safari hangs and I get a page cannot be displayed
    error after 1 minute or so, even though the db function went
    through.
    Now, this only happens with safari and it only happens with
    pages I build with dreamweaver, any hand coded websites I build do
    not do this.
    i have posted this on the apple website with no response, I
    am hoping someone here can help me.

    On Fri, 23 Nov 2007 16:21:50 +0000 (UTC), "MacDaddy333"
    <[email protected]> wrote:
    >Hello,
    >
    > All of the sites that have this issue are secure, one is
    a shopping cart
    >
    >
    http://www.jennywrenpaperie.com
    >
    > You will need to create a user account and then log in
    to see the problem, as
    >for the code, well, there is so much code involved, many
    pages of includes, so
    >i cant post it all
    >
    > One more thing, this doesn't happen to every Safari
    user, only a few, very
    >frustrating as you can imagine
    And I should give you my email address because...
    Seriously, you want people to troubleshoot your site, create
    a dummy
    account that we can log in with.
    Win
    Win Day, Wild Rose Websites
    http://www.wildrosewebsites.com
    [email protected]
    Skype winifredday

  • PHP MySQL data display problem

    I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
    Selected PHP as the type.
    Saved it.
    Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
    NOTE: The database is on a remote server.
    The TEST button displayed the records from the recordset with no problem.
    On the new page, I then typed some text.
    Then dragged some fields from the Bindings tab to the page.
    I saved it and then went to preview it in my browser.
    The page comes up completely blank. Not even the text shows.
    I then saved the page as an HTML page.
    When I preview this in my browser, the text shows, but the fields and data do not.
    I then tried creating a dynamic table (again, using the Dreamweaver menus.).
    A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
    Nothing shows if I save it as a PHP file.
    I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
    It is just in pages created in Dreamweaver that don’t work.
    What am I doing wrong?

    My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
    Frank
    Date: Thu, 4 Jun 2009 19:04:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP MySQL data display problem
    To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
    Mark A. Boyd
    Keep-On-Learnin'
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.
    >

  • Problems with recordset in PHP/MySQL setting

    We use Dreamweaver CS5 for creating dynamic pages (PHP pages with MySQL database). We test the site locally on a Windows 7 operating system with EasyPHP as WAMP server.
    We often have a problem in managing the record set.
    The following problem occurs quite often:
    We take a PHP page. We create a recordset. We use a dynamic table or a repeated region to show the results of the recordset. So far so good.
    Then we want to change something to the recordset for example the filter. When editing the recordset, the advanced mode is shown, it is impossible to swith to the simple mode.
    By deleting the recordset the problem is not solved. By deleting and afterwards rebuilding the recordset, syntax errors occur. It seems that the php code for building the recordset didn't dissapear.
    The only solutions till now seems to completely restart with a new PHP page.
    Anyone has a solution for this or anyone did experience the same problem ?
    Thank you very much in advance.
    Ilse 

    You cannot switch to Simple mode in the Recordset dialog box if you have made any changes to the SQL in Advanced mode.
    Opening the Recordset dialog box to edit the settings does occasionally result in the code being inserted again instead of being changed. This appears to be an intermittent bug, which I have experienced myself, and know that others have complained about it, too. As far as I know, there is no solution other than to watch carefully the code that Dreamweaver generates.
    If you don't understand the code, you would be well advised to learn what it means and does. Relying on Dreamweaver to do everything for you severely limits what you can do with PHP/MySQL. Adobe regards the server behaviors as quick prototyping tools, rather than for developing production websites.

  • Macromedia Dreamweaver "Unidentified Error" PHP MySQL, help please

    Ok,
    I've been developing web applications with with PHP/MySQL for some time now, but had been unable to afford dreamweaver to help me out. Thus every website I made came from strait "notepad" style typeing. Everything always worked just fine. Recently though I got my hands on Macromedia Studio MX, but have been having troubles ever since then.
    I wrote my own PHP script to connect to my MySQL database on my computer (localhost), and it worked like a charm. Then I went over to dreamweaver, followed all the steps, entered the information, clicked the "test" button and I get the an error "an unidentified error occured".
    At this point I checked everything tried again, and then that rendered the same result, I went online and found the same problem at Macromedia's webstie: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16515
    I've tried everything mentioned there to no avail. I was hopeing someone out there would know what is wrong with my connection. Quick summary:
    Trying to connect with Dreamweaver to localhost MySQL database, with PHP MySQL settings. I get "an unidentified error occured". But the informaiton has been verified as correct with my own PHP script.

    Sorry, but it doesn't help JTANNA.
    What is your definition of "more efficiently"? If it's limitation of search results, branded search, and limitation of styling your results then google search is more efficient. Real developers rely on their own developments. For example: how can google search display results from a password-protected site? They can't.
    best,
    Shocker

  • CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?

    When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective.  I cannot use the server behavior.  I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want.  I cannot change that except in the server behavior, so I'm stuck.  I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case.  I will appreciate any suggestions!  Is there any way to embed a call to a target page manually?  All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page.  That'll drive a user bonkers!
    Thanks!
    Delete Record in CS6 Dreamweaver using PHP & MySQL?

    Well, your error message is self-explanatory.
    DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
    I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
    http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
    Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
    Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
    Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
    It should work as expected.
    If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
    Let us know how it goes.
    -ST

  • 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.
    >

  • How to use spry in the dreamweaver with the php/mysql

    hello,
    Iam new to the spry framework
    and i want to know can we use the spry in the dreamweaver
    along with php / mysql code
    if so please tell how to do this
    thanks in advance

    swetha123 wrote:
    > but when i complie this page it is not showing the
    preiew or any thing in the
    > browser i saved this page with the extension .php if i
    run the same page with
    > .html then i can see the design but it is not being
    executed
    The reason you get nothing when you save the page with a .php
    extension
    is because you have display_errors turned off, so you can't
    see the
    error message telling you there's a syntax error. The
    semicolon is
    missing at the end of this line:
    > echo "<font color='white'>Hello
    Swetha</font>"
    The reason it doesn't work with an .html extension is
    probably because
    you haven't uploaded SpryAssets/SpryTabbedPanels.js. I have
    copied your
    page and tested it locally with the correct JavaScript file,
    and the
    tabbed panels work as expected.
    There are lots of other mistakes in your page. You can't use
    float and
    position:absolute on the same element. In at least one place,
    you have
    used </br> instead of <br />. You have also got
    an closing paragraph tag
    after the paragraph that contains abc.jpg.
    Getting Spry or any other JavaScript library to work
    correctly relies on
    good, clean code. Your mixture of inline styles and font tags
    is going
    to make it difficult to incorporate Spry into your pages. I
    suggest you
    improve your HTML and CSS before bringing Spry into the mix.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Where to go next with Dreamweaver and server-side (php/mysql) applications?

    This question is mainly directed at David Powers but  I appreciate any input from anyone with the same concern or question.
    I've been using DW since the change from Macromedia and have developed a number of applications using built in server behaviors and sb extensions from ADDT, WebAssist, etc. I've learned to customize these behaviors to fit my needs always keeping within the "canned" code. In this way I've "learned" php.
    I own most of David's books and in fact, it was because of these that I have any idea about what I'm doing and went in this direction in my "developer" career (building php/mysql applications using Dreamweaver.)
    With the decision to remove server behaviors (and the other "developer" panels) from DW and with the deprecation of the mysql extension from the php landscape, I'm wondering where to go next? I fully understand this has to happen.
    I'm aware of some alternatives:
    Zend or some other framework - to me, this seems extremely complex
    Keep several versions of DW installed
    Stick to Joomla/WordPress/Drupal - let others who know what they're doing build the architecture
    Actually LEARN php - wish I had time; too much work to do (I know how illogical that sounds but it's a very real situation)
    I know I'm going to have to switch out all that deprecated code or better yet, rebuild the many applications which used the DW (and other) server behaviors. I'm just not sure which way to turn.

    rjjacob wrote:
    Since I wrote this post I concluded that there is no substitute for understanding and have started my re-education by delving further into the issue with updated PHP/MySQL books and tutorials so I can prepare for a Dreamweaver without this functionality.
    Yes, I too have concluded that is the way to go as well. There really is no substitute for learning as much as you can. Whilst the DW Server Behaviours were very convenient they have not kept pace, Adobe prefering to spent their time on less important updates in my opinion. The Server Behaviours are what makes Dreamweaver the tool of choice  for database integration for those who lack the knowledge. I feel the Adobe team will regret not coming up with an alternative. Anything that detracts from making the program what it is is a step in the wrong direction and for sure this is a big step in the wrong direction.
    rjjacob wrote:
    I have mainly used DW server behaviors in my development projects that's why I am curious about what others are doing to make the change. I'm surprised there haven't been more posts; perhaps I'm the last one to be taking action about this, or maybe no one is too worried about it yet.
    I think a lot have changed their working practice but many more are burying their heads in the sand. sql_ support is a way off from being completely dropped yet.
    rjjacob wrote:
    Anyway, your assessment of how terrible the server behaviors are is correct. I'm finding that true after barely breaking the binding on a few books about the greater subject and looking into mysqli and PDO.
    Yes, because I relied heavily on them I did not know how bad they were until I forced myself to look further afield. What you can do in a couple of lines of code the DW Server Behaviors produced quadruple or more to achieve the same.
    rjjacob wrote:
    But they sure were convenient!
    Yes, I agree. Maybe some extention developer will come up with a set of new improved behaviours. I tell you if they do they will make a shed load of money.

  • Dreamweaver newbie - php & mysql help

    hi,
    new to dremweaver, have used .net in past with vwd and found it straight forward to drag over grid view etc to view data from sql database.
    i want to use php and mysql now and looking at dreameaver cs4 i really want to know what each navigation is. i.e. how do i create my mysql database and drag say a grid view in dreamweaver cs4 over to view?
    basically just need to know the basics navigation of what buttons i need for to interact using php and mysql?
    any help would be great, and also if anyone can recommend a good book on php/mysql with dreamweaver cs4 as a by the by then would greatly appreciate it.
    many thanks
    andy

    Take a look at this book:
    http://www.amazon.com/Essential-Guide-Dreamweaver-Ajax-Essentials/dp/1430216107
    I didn't read it, but I am currently reading the author's another book (David Powers: PHP Object-Oriented Solutions) and he is good.
    David is also a community expert on these forums.

Maybe you are looking for

  • Error on opening a PDF download

    Please do not have your subject in all CAPITALS HI, i am geeting the below error message on trying to open the pdf download **"Adobe reader could not open file because it is either not a supported file type or because the file has been damaged (for e

  • SMS Integration

    Hi Experts, I am doing IDoc-XI-File scenario. Scenario is done. Now issue is....In any case due to some issue file is not created...My Mean mapping Error OR any Error came in scenario.... So i need to send an Alert SMS to Client in such a case. My qu

  • Jagged images after export to .mov format

    Hi everyone reading, In a project I'm working on in FlashCS3 Pro, I have a problem with export > Quicktime film > ect. When the encoding to the .mov format is finished and I play my new created movie in QuickTime a lot of images are jagged, not compl

  • Toolbar issue after waking from sleep

    When I wake my MBP Retina up from sleep, the top toolbar has recently been appearing a dark grey color instead of the normal translucent color. This problem is quickly fixed when I three finger scroll to another screen, but it is still annoying. I ha

  • Basic Graphics_Textures overlap problem

    Sorry if this is a newb question. In Illustrator CC v17.0.2, I'm trying to do a simple Appearance on a Fill using a default diamond pattern from Adobe pattern swatches. But the texture seems to overlap always Notice in the diamond swatch that is sele