DW CS4 with PHP/MySQL

Hi,
I have come across some buggy stuff today in CS4 that I have never seen before. Anytime I would filter a recordset  using "URL Parameter" ,Dreamweaver would totaly mess up the recorset. When I go to "Advanced" I see that there is an additional SQL Variable named "totalRows" in addition to another one named "colname". Everytime I cleaned up the SQL statement only to revert it back.
Has anyone seen that?
Any help would be appreciated
Kal

OK...my bad. My problem basically amounted to "user error", which as we all know is more often than not the case. I have discovered that when you manipulate a MySQL recordset and associated variables via the Bindings panel, you must be VERY CAREFUL making additions or changes. I guess I have become complacent in that DW CS4 has proven to be very intuitive in 'cleaning up' old code in favor of subsequent modifications. Not really the case, in this particular instance. The interface basically inserts your changes via the Bindings edits ON TOP OF the existing code. It will often duplicate the recordset, code-wise. And if you modify a variable, thinking that DW will go in and clean up your old statements, beware - it will not! You are better off manually changing the code in the program itself. I am pressed for time here, but will be more than happy to provide specific examples if asked to, at a later date. Thanks much, Murray!  

Similar Messages

  • Inserting special character like apostrophes with PHP/Mysql

    Hi friends,
    I have a problem with php/mysql. I have created a form inton a php page with dreamweaver and when i try to fill the form with a string containing apostrophe ( ' ), i have a error. It seems that the insertion is not possible. Could you have any idea for that. I give you the php dreamweaver code and thank you for your help.
    <?php require_once('Connections/Mainconnect.php'); ?>
    <?php require_once('Zend/Date.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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":
    if ($theValue=="")
        $theValue="NULL";
    else
        $zendDate=new Zend_Date($theValue,"dd/MM/yyyy");
        $theValue="'".$zendDate->toString("yyyy-MM-dd")."'";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE pers_soc_reg SET field1=%s, field2=%s,
                           GetSQLValueString($_POST['field1'], "text"),
                           GetSQLValueString($_POST['field2'], "double"));

    "Normally, you canot use mysql_real_escape_string without connection to database"
    That is not true at all. Try running the following script.
    <?php
    if ($_POST['submit']){
    $x1=$_POST['test1'];
    foreach ($_POST as $key => $value) {
    if (!is_array($value)){
    $_POST[$key] = mysql_real_escape_string($value);
    extract($_POST);
    echo "The text after 'becomes' should be escaped (\')<br/>";
    echo "$x1 becomes $test1<br/>";
    ?>
    <hr/>
      <form action="#" method="post" />
    Enter some text, including an apostrophe: <input name="test1" type="text"><br/>
        <p><input name="submit" value="submit" type="submit"/>
      </form>

  • Prices with PHP/MySQL

    I want to use numbers from a database as prices. In the database (PHP/MySQL) the structure is "decimal(9,2)". If I put it out with PHP a number like 9.02 is € 9.02 but 9.20 looks like this € 9.2. How do I put prices with PHP/MySQL?
    I hope my question is clear.. Thankx for any further help.

    Use the PHP number_format() function.

  • CS4-generated PHP/MySQL Statements

    I have constructed a simple 2 program GUI in CS4 using PHP and MySQL. Program A accepts XHTML form user input of two text fields, which are then passed to program B for subsequent MySQL retrieval and processing. I would appreciate a little clairification on the MySQL statement that CS4 generates in the recordset I built.
    Here are the PHP statements that set the passed variables in Program B:
    $colname1_Recordset1 = "";
    if (isset($_POST['transaction_mfgr_importer'])) {
      $colname1_Recordset1 = $_POST['transaction_mfgr_importer'];
    $colname2_Recordset1 = "";
    if (isset($_POST['transaction_model'])) {
      $colname2_Recordset1 = $_POST['transaction_model'];
    Here is the recordset generated based on that input:
    mysql_select_db($database_DGRconnect_acquisition, $DGRconnect_acquisition);
    $query_Recordset1 = sprintf("SELECT * FROM dgr_ad_vendor_acquisition WHERE dgr_ad_vendor_acquisition.transaction_mfgr_importer = %s AND dgr_ad_vendor_acquisition.transaction_model = %s", GetSQLValueString($colname1_Recordset1, "text"),GetSQLValueString($colname2_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $DGRconnect_acquisition) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    I have highlighted in red the parts of the generated statement from which my questions arise. Basically, I'd like to know how the "%s" is generated to represent the two variables, and more importantly, how they are parsed so that they are differentiated in the statement. In other words, how does the engine keep track of which "%s" is which? I hope my first question isn't about as clear as mud!
    Secondly, Is there any way I can manipulate the two of these variables to work in a "LIKE" operand, versus the "=" one?
    $query_Recordset1 = sprintf("SELECT * FROM dgr_ad_vendor_acquisition WHERE dgr_ad_vendor_acquisition.transaction_mfgr_importer LIKE %s AND dgr_ad_vendor_acquisition.transaction_model LIKE %s", GetSQLValueString($colname1_Recordset1, "text"),GetSQLValueString($colname2_Recordset1, "text"));
    I would prefer to alter my original statement to take advantage of the relative comparison function that the LIKE operand normally performs. I want the resultant rows retrieved by the SELECT to include anything similar to what the user inputed. Normally, the LIKE comparison requires a hard-coded string, eg. "WHERE dgr_ad_vendor_acquisition.transaction_mfgr_importer LIKE '%General Electric%'... ". I'm trying to figure out how to replace the "%s" variable representations with the contents of $colname1_Recordset1 and $colname2_Recordset1 respectively.
    Thanks for your time, and any feedback would be greatly appreciated!    

    Sorry about the Scotch whiskey teaser. I saw where a bottle of Bowmore 1850 auctioned for 29,000 English pounds. Sheesh!
    As for the PHP imbedded in the SQL, I guess I had hoped that maybe since PHP and MySql seem to be kindred spirits as far as a database/programming platform goes, that maybe Apache/MySQL knew to evaluate the PHP statement within the MySQL statement and somehow convert it. As I said, I had my doubts and they were proven to be true.
    In any event, I want to thank you again. Your solution is working swimmingly for me in several of my prototype applications. Much appreciated!

  • Setting up Dreamweaver CS4 with PHP testing server... Live View doesnt work

    Hello,
    Im trying to setup Dreamweaver CS4 with a php website im
    making. Ive setup the site information, and provided a testing site
    (XAMPP), and i can see the fully rendered .php pages in the Live
    View tab. However, say i change some of the text in the .php file
    (say from <p>Hello</p> to <p>Hi</p>) and
    then click in the Live View tab - the page does not update. It
    seems to do something, bit just returns the same.
    How do i set it up so, like with plain .html pages, you can
    make a change to the source code and instantly see the change in
    Live View?
    (At the moment i have to make the change to the source code,
    save it, click Live View to cancel it, and then click Live View
    again).
    Background:
    Ive setup XAMPP (G:\XAMPP\)
    Ive setup vhosts in apache.
    Ive stored my websites in G:\Websites
    Ive set the testing server to G:\Websites\site, where "site"
    is setup as a vhost and correctly displays when entered into a
    browser.
    Ive set the url prefix to
    http://site/
    Ive set local root to G:\Websites\site
    Any help would be greatly appreciated.
    Cheers.

    > How do i set it up so, like with plain .html pages, you
    can make a change
    > to
    > the source code and instantly see the change in Live
    View?
    Did you try using F5 to refresh the page? If that doesn't
    work for you,
    then you'll have to drop and restart Live view. No need to
    save and reload
    the page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Major_Disaster" <[email protected]> wrote
    in message
    news:gibqir$lgu$[email protected]..
    > Hello,
    >
    > Im trying to setup Dreamweaver CS4 with a php website im
    making. Ive setup
    > the
    > site information, and provided a testing site (XAMPP),
    and i can see the
    > fully
    > rendered .php pages in the Live View tab. However, say i
    change some of
    > the
    > text in the .php file (say from <p>Hello</p>
    to <p>Hi</p>) and then click
    > in
    > the Live View tab - the page does not update. It seems
    to do something,
    > bit
    > just returns the same.
    >
    > How do i set it up so, like with plain .html pages, you
    can make a change
    > to
    > the source code and instantly see the change in Live
    View?
    >
    > (At the moment i have to make the change to the source
    code, save it,
    > click
    > Live View to cancel it, and then click Live View again).
    >
    > Background:
    > Ive setup XAMPP (G:\XAMPP\)
    > Ive setup vhosts in apache.
    > Ive stored my websites in G:\Websites
    > Ive set the testing server to G:\Websites\site, where
    "site" is setup as a
    > vhost and correctly displays when entered into a
    browser.
    > Ive set the url prefix to
    http://site/
    > Ive set local root to G:\Websites\site
    >
    > Any help would be greatly appreciated.
    >
    > Cheers.
    >

  • Thinking of learning to build sites with PHP/MySQL

    Is it worth it to invest the time and brain power? I've been
    using Dreamweaver for years. None of my sites really are so large
    that I'm having issues. But, I could see some down the road that
    might be too complex and large.
    I'm having some problems figuring out where to begin. Any
    suggestions on books that specifically deal with Dreamweaver and
    database driven sites?

    David Powers 'Foundation PHP for Dreamweaver 8' is what got
    me started. I
    was able to work through most of it in a weekend. He takes
    you step by step
    on how to set up your computer to run PHP/MySQL, and then you
    build a series
    of increasingly complex projects with each new aspect of
    PHP/MySQL that he
    teaches.
    He has some newer books out, too, if you have a more recent
    version of DW:
    http://foundationphp.com/
    ...Brenda
    "PeteC" <[email protected]> wrote in
    message
    news:g4dn2u$1gh$[email protected]..
    > synterx wrote:
    >> Is it worth it to invest the time and brain power?
    I've been using
    >> Dreamweaver for years. None of my sites really are
    so large that I'm
    >> having issues. But, I could see some down the road
    that might be too
    >> complex and large.
    >>
    >> I'm having some problems figuring out where to
    begin. Any suggestions
    >> on books that specifically deal with Dreamweaver and
    database driven
    >> sites?
    >
    > Anything by David Powers (of this parish) will be an
    exceedingly good
    > investment..
    >
    > Pete.
    > --
    > Peter Connolly
    >
    http://www.kpdirection.com
    > Utah
    >

  • 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 ! :)
    >

  • Creating a flash website to work with php & MYSQL for MMORPG

    Hi i have a website which is a gangster MMORPG, it using PHP,
    CSS, HTML and some javascript but however with the amount of game
    similar to mine i want to make it unique so i bought "building
    flash websites for dummies" i have read must of it and understand
    most of it. but however don't really have a clue i it could
    actually work with my website.
    what i want to know is can it work with my current PHP &
    MYSQL, so for example i want to create a logging page with flash to
    replace my old PHP/HTML one this will be my first crack at it. but
    will flash be able to check the MYSQL database and send error
    messages back to the view etc.

    Yeah, this can work... My recommendations would be to read a
    couple articles in the dev center on this topic, that should get
    you started...
    http://www.adobe.com/devnet/flash/articles/flash_databases.html
    http://www.adobe.com/devnet/flash/articles/datawizards.html
    http://www.adobe.com/devnet/flash/articles/ria_dataservices.html

  • Spry accordion with php mysql as data

    Hello
    I`m trying to create a spry accordion where the Labels are pulled from a mysql database table and the Content of that label is pulled from data in the same database. I tried adding first the spry accordion and then created 1 recordset for the labels and a second recordset for the content , then I added a repeat region for the labels DIV and inside this div I added a repeat region for the content.
    Unfortunatly when viewed in the browsers the accordion doesn`t work.
    Can anyone look at the code and tell me where is the mistake.
    Thanks
    <?php require_once('Connections/log.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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_log, $log);
    $query_log_year = "SELECT DISTINCT Year(`23849`.acoff) AS yy FROM `23849` ORDER BY Year(`23849`.acoff)";
    $log_year = mysql_query($query_log_year, $log) or die(mysql_error());
    $row_log_year = mysql_fetch_assoc($log_year);
    $totalRows_log_year = mysql_num_rows($log_year);mysql_select_db($database_log, $log);
    $query_log_year = "SELECT DISTINCT Year(`23849`.acoff) AS yy FROM `23849` ORDER BY Year(`23849`.acoff)";
    $log_year = mysql_query($query_log_year, $log) or die(mysql_error());
    $row_log_year = mysql_fetch_assoc($log_year);
    $totalRows_log_year = mysql_num_rows($log_year);
    $mhour_log_mon = "0";
    if (isset($row_log_year['yy'])) {
      $mhour_log_mon = $row_log_year['yy'];
    mysql_select_db($database_log, $log);
    $query_log_mon = sprintf("SELECT DISTINCT DATE_FORMAT(`23849`.acoff, '%%M') AS mon , DATE_FORMAT(`23849`.acoff, '%%m') AS m , sum(`23849`.ablock) as toth FROM `23849` WHERE YEAR(`23849`.acoff) = %s GROUP BY m ORDER BY m ", GetSQLValueString($mhour_log_mon, "int"));
    $log_mon = mysql_query($query_log_mon, $log) or die(mysql_error());
    $row_log_mon = mysql_fetch_assoc($log_mon);
    $totalRows_log_mon = mysql_num_rows($log_mon);
    ?>
    <!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>testing ajax php mysql</title>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <?php do { ?>
          <div class="AccordionPanelTab"><?php echo $row_log_year['yy']; ?></div>
          <?php } while ($row_log_year = mysql_fetch_assoc($log_year)); ?>
    <div class="AccordionPanelContent">
      <table width="100%" border="0" cellspacing="5" cellpadding="5">
        <?php do { ?>
          <tr>
            <td><?php echo $row_log_mon['mon']; ?></td>
            <td><?php echo $row_log_mon['toth']; ?></td>
          </tr>
          <?php } while ($row_log_mon = mysql_fetch_assoc($log_mon)); ?>
      </table>
    </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($log_year);
    mysql_free_result($log_mon);
    ?>

    You only have 1 "AccordianPanel" which contains a list of "AccordianPanelTab" elements, then a list of "AccordianPanelContent" elements.
    You need to have a list of "AccordianPanel" elements, each containing a pair or "AccordianPanelTab" and "AccordianPanelContent" elements.
    HTH,
    Randy

  • Help with php mysql connect script

    Ok guys im new to php mysql and i'm trying to insert some
    form information in my database. Im using a script from sitepoint
    in which i went through the tutorial did some experiments of my own
    and it worked....
    but now i'm getting this error which i cant figure out....
    Error placing order: You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for
    the right syntax to use near 'order SET product ='1',
    size='medium', color='', quantity = '1' at line 1
    here is the page
    http://vaughntucker.com/imagecon/hats.php
    and this is the script
    <?php
    //default page display
    //connect to database
    $dbcnx = @mysql_connect('p3nl41mysql7.secureserver.net',
    'imagecon', 'Dub*boss_1');
    if (!$dbcnx) {
    echo '<p> Unable to connect to the '. 'database server
    at this time.</p>';
    exit();
    //select database
    if (!@mysql_select_db('imagecon')) {
    exit('<p>Unable to locate the ' .
    'database at this time.</p>');
    //Mysql query add joke
    if (isset($_POST['submit'])) {
    $product = 1;
    $size = $_POST['size'];
    $color = $_POST['color'];
    $quan = $_POST['quantity'];
    $sql = "INSERT INTO order SET
    product ='$product',
    size='$size',
    color='$color',
    quantity = '$quan',
    date = CURDATE()";
    }else{
    echo 'No data submited';
    if (@mysql_query($sql)) {
    echo '<p>Your order has been submited.</p>';
    } else {
    echo '<p>Error placing order: ' .
    mysql_error() . '</p>';
    ?>
    thanks in advance

    $sql = "INSERT INTO order SET
    product ='" . $product . "',
    size='" . $size . "',
    color='" . $color . "',
    quantity = '" . $quan . "',
    I believe there are other more elegant ways to do this, as
    well.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "beatzMalone" <[email protected]> wrote in
    message
    news:[email protected]...
    > Ok guys im new to php mysql and i'm trying to insert
    some form information
    > in
    > my database. Im using a script from sitepoint in which i
    went through the
    > tutorial did some experiments of my own and it
    worked....
    >
    > but now i'm getting this error which i cant figure
    out....
    >
    > Error placing order: You have an error in your SQL
    syntax; check the
    > manual
    > that corresponds to your MySQL server version for the
    right syntax to use
    > near
    > 'order SET product ='1', size='medium', color='',
    quantity = '1' at line 1
    >
    > here is the page
    >
    http://vaughntucker.com/imagecon/hats.php
    >
    > and this is the script
    > <?php
    > //default page display
    > //connect to database
    > $dbcnx = @mysql_connect('p3nl41mysql7.secureserver.net',
    'imagecon',
    > 'Dub*boss_1');
    > if (!$dbcnx) {
    > echo '<p> Unable to connect to the '. 'database
    server at this
    > time.</p>';
    > exit();
    >
    > }
    >
    > //select database
    > if (!@mysql_select_db('imagecon')) {
    > exit('<p>Unable to locate the ' .
    > 'database at this time.</p>');
    > }
    >
    > //Mysql query add joke
    > if (isset($_POST['submit'])) {
    > $product = 1;
    > $size = $_POST['size'];
    > $color = $_POST['color'];
    > $quan = $_POST['quantity'];
    > $sql = "INSERT INTO order SET
    > product ='$product',
    > size='$size',
    > color='$color',
    > quantity = '$quan',
    > date = CURDATE()";
    > }else{
    > echo 'No data submited';
    >
    > }
    > if (@mysql_query($sql)) {
    > echo '<p>Your order has been submited.</p>';
    > } else {
    > echo '<p>Error placing order: ' .
    > mysql_error() . '</p>';
    > }
    >
    >
    >
    > ?>
    >
    > thanks in advance
    >

  • Generating Excel/Word Document with PHP/MySQL

    Hi all,
    I would like to know the best way I could create a Excel/WORD
    document that can take the name, address, from my mailing list
    table and use mail merge to print envelopes?
    Any ideas? Or is there any software than can help me?
    Thank you in advance

    Luis Godinho Ramos wrote:
    > SELECT *
    > FROM produtos
    > WHERE prod_modelo LIKE %colname% AND prod_funcao LIKE
    %colname% AND
    > prod_descricao LIKE % colname% AND prod_tags LIKE
    %colname%
    > ORDER BY prod_modelo ASC
    The second example you give is closer, but you need to
    enclose the query
    fields in quotes and use OR rather than AND...
    SELECT * FROM produtos WHERE prod_modelo LIKE '%colname%' OR
    prod_funcao
    LIKE '%colname%' OR prod_descricao LIKE '%colname%' OR
    prod_tags LIKE
    '%colname%' ORDER BY prod_modelo ASC
    HTH,
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • I need help with DW, PHP & MySQL please.

    Hello, I am new to website development and am trying to set up a form for collecting data on my website and have a question that I can’t find an answer to anywhere else. I was wandering if someone there would be kind enough to help?  I am using Dreamweaver in CS4 and my host already has PHP & MySQL installed on the server that I can use.  My question is: Do I need to download XAMP or WAMP on my computer before trying to connect my form to the server?  Also, do I need to change the page I am putting the form on to .PHP extension or can I just embed the PHP form into an existing HTML page?
    Most of the training tutorials I’ve read don’t start at the most basic beginning but rather expect people to already have a basic knowledge of the topics they are trying to learn.  If anyone knows the best place to get answers to the most basic questions like this one or a beginners guide to working with DW, PHP & MySQL I will gladly go there rather than waste your time on questions you’ve probably already answered a bezillion times.
    Thank you for the help.

    Strictly speaking, you don't need XAMPP or WAMP on your local computer. But if you're serious about getting involved with PHP/MySQL, you should definitely set up a local testing environment with one or the other. It's safer and more efficient. Don't expose all your errors on a live server. You can find instructions on  how to set up a testing environment here: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.
    To develop with PHP, you should always use a .php file name extension. Any other choice is very rare.
    There's a tutorial on building your first dynamic website with DW here: http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html.
    For more in-depth help, you might want to consider grabbing hold of a copy of "The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP". (Yes, I wrote it, so it's a bit of shameless self-promotion, but you'll find it answers many of your questions - and probably a lot you hadn't even thought of.)

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

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

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

Maybe you are looking for

  • How do I change the size and pics in this Flash file?

    I need help with the zipped flash file that I have for download here... 1 - I only need to use 6 images, how do I get rid of the rest? 2 - How do I actually change out the images with the ones I want? 3 - I need to have this file publish CLEARLY (mea

  • Oracle ADF 11g – Authentication using Custom ADF Login Form Problem

    Hi Guys, I am trying to Authenticate my adf application using custom Login Form. following this.. http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/#respond But my Login Page is not Loading.I thi

  • Schedule frequency

    Hello, I have a requirement to schedule a report (Crystal Reports against ECC tables) on Mondays only when the Monday has a date of the 7th through and including the 21st. So if its Monday the 1st, the report sould not run. Any idea on how this done?

  • Dynamic IF statement...like dynamic where clause...

    Hi, I know how to do a dynamic where clause by putting (varname) like shown below - select * from cust_mstr where (varname). Can I do it something like this in IF statement. if (varname). endif. The varname will have different conditions. Your help w

  • Creating a flip counter

    I am looking for a tutorial that would allow me to make the counter found on this page. I found one a while back that used Photoshop and jquery to create this same counter but I lost the book mark. I tryed searching the net but I don't know what to s