For  David Powers ?

David,
Hope you having a good break from here - as you've not been
around for
a few days.
When you are back - I need a little help please
~Malcolm N....
~

> Come to think about it - Murray seemed to make the move
to using php
> only a few months ago - and given his enthusiasm for
SSI's maybe this
> tells something about the next release - or maybe I'm
reading too much
> between the lines (:-))
You're looking for deep inner meaning in a shallow bowl, I'm
afraid! 8)
Templates are part of DW and will be for a long time. And
personally, I
have no problem with includes in DW templates.....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Malcolm N_" <[email protected]> wrote in message
news:[email protected]...
> On Sat, 27 Jan 2007 19:38:04 +0000, David Powers
<[email protected]>
> wrote:
>>
>>I'll wait for the summary. The basic thing to
remember about include()
>>is that it expects a relative path, an absolute path,
or for the file to
>>be in the PHP include path.
>
> Thanks David - at the moment things are under control,
but I haven't
> altered much of the site with DW.
>
>> Things get complicated if you use includes
>>with Dreamweaver templates.
>
> Yes - well DW has been good at controlling some tricky
things to date,
> I hope that the next release makes using includes within
simple
> Template's a little easier.
>
> After all the Adobe Community Experts have been pushing
the use of
> SSI's very strongly in the last couple of years, telling
us to abandon
> tables, and complex templates (:-))
>
> Come to think about it - Murray seemed to make the move
to using php
> only a few months ago - and given his enthusiasm for
SSI's maybe this
> tells something about the next release - or maybe I'm
reading too much
> between the lines (:-))
>
> --
>
> ~Malcolm N....
> ~

Similar Messages

  • Question for David Powers re file 'quotations.sql'

    It would appear from the first few lines of this file (shown
    below) that it
    first checks if a table "quotations" already exists, and if
    so deletes it. Then
    it creates a new version, and populates it with the following
    data.
    Is this correct?
    Clancy
    -- Table structure for table `quotations`
    DROP TABLE IF EXISTS `quotations`;
    CREATE TABLE `quotations` (
    `quote_id` int(10) unsigned NOT NULL auto_increment,
    `quotation` varchar(255) NOT NULL default '',
    `first_name` varchar(30) NOT NULL default '',
    `family_name` varchar(30) NOT NULL default '',
    PRIMARY KEY (`quote_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    -- Dumping data for table `quotations`
    INSERT INTO `quotations` VALUES (1, 'My disability is ......'
    Clancy

    Clancy wrote:
    > I thought so. As the sql file redefines the table, is it
    necessary to define
    > the table at all before running the file?
    The purpose of the preceding section is to teach you how to
    define a
    table. If all you're interested in is copying my table
    structure, feel
    free to do so. However, I believe in the principle of
    teaching a man to
    fish, rather than giving a man a fish.
    > I have been thinking about how to set up a database for
    my photo album, and
    > wondering how to order it. If I have a text file, like
    'quotations.sql', it
    > looks as if the easiest way to change the order of the
    photos is to swap the
    > lines in the text file, and then reload the whole
    database.
    If that's your conclusion, then I'm afraid that you have
    failed to
    understand the fundamental principles of how a database
    works. The order
    in which records are entered is totally irrelevant. You use
    SQL to
    display them in whichever order you require.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • For David Powers please

    Hi,
    I have used your method for a news blog from PHP for
    Dreamweaver 8.
    When no image is selected, firefox does not display the image
    container with the red X.
    However, most of our users are still using IE6.
    In IE6 when no image is used it shows an image holder with
    the red x in it.
    Is there a way to remove the image place holder if no image
    is displayed?
    Also when no caption is used, in all browsers you get a
    "Caption here" in place of the caption.
    cheers

    Macnimation wrote:
    > As a by the way, I also have the Essential Guide to
    Dreamweaver with CC, AJAX
    > and PHP and bwtween them I get most help.
    Thanks. That's nice to know.
    > Do you know of or are you planning a future book to
    build applications other
    > than Blogs and Photo Galleries, because it seems that
    nearly all books on Web
    > developement whether it is PHP, ASP or Coldfusion seem
    to concentrate on these
    > applications only.
    I suspect that's because they involve basic database
    techniques.
    Beginner-level books sell more than advanced ones, mainly
    because anyone
    who moves beyond the beginner level is usually fairly capable
    of
    tackling more complex projects without the assistance of a
    book.
    Anyway, the ideas you have suggested will certainly give me
    something to
    think about for future books. I'm currently putting the final
    touches to
    a CS4 book, but it doesn't cover the sort of area you're
    looking for.
    > I discussed this last year at Adobe MAX in Barcelona and
    alot of people agreed
    > that some more diverse applications would be useful.
    I'll be in Milan in
    > December also......
    I'm hoping to go too, but haven't made a firm decision yet.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Video2Brain question for David Powers

    Hi David (and anybody else wanting to read this), I have a number of projects where I am being asked to create mobile apps with HTML5 packaged through phone gap, but I am also being asked to include a CMS for ease of editing. I can create the CMS no problem, and I can create the the mobile app too, but I have no idea of how to marry a native app with a remote database so the app's contents stays up-to-date. I mainly need to pull data, but also insert data on occassions. If I can get the pulling of data to work, that will help me immensely.
    My question to you David is: Do any of your Video2Brain courses cover this kind of subject?
    If anybody else knows of any tutorials on the net, or in books that cover this subject, I'd love to hear about them.
    I am assuming it's not important, but just in case it is, I am using DWCS6, MySQL and PHP
    Thanks.
    Mat

    PhoneGap creates native apps using HTML, CSS, and JavaScript. It does not support PHP or any other server-side technology.
    If you want to communicate with a remote database, you need to use JavaScript to send an Ajax request to the database, which needs to send the response formatted as XML or, preferably, JSON. You then use the success callback function of your Ajax request to display the results. It's also possible to store data on the mobile device using the Web SQL API, which uses JavaScript rather than PHP to communicate with the database.
    My video2brain courses don't go into this level of detail. My book, Adobe Dreamweaver CS5.5 Studio Techniques: Designing and Developing for Mobile with jQuery, HTML5, and CSS3, has a fully worked example of creating a local database on the mobile device using Web SQL, but it doesn't cover accessing a remote database.
    There's an online tutorial by Raymond Camden about synchronizing remote and local databases with a PhoneGap project at http://css.dzone.com/articles/adding-database.
    There's also a very detailed article in the Adobe Developer Connection by Andrew Trice about connecting a PhoneGap app to a database in the cloud at Database.com: http://www.adobe.com/devnet/phonegap/articles/phonegap-apps-powered-by-developercom.html.
    I haven't tested the code in either article, but both authors are very reliable.
    If you don't have any experience of using Ajax, I recommend using jQuery. It makes Ajax communication very simple. On the PHP side, use json_decode() and json_encode() to handle the incoming and outgoing data.

  • For David Powers - Apache 2.2 and php 5.2. Virtual hosts

    Hi David,
    I have updated to the latest Apache and PHP
    Apache 2.2 and php 5.2. Must easier instal,
    But now I'm setting up Virtual hosts to make it easier to use
    php
    includes and DW templates.
    I have followed instructions on page 86 of above book, but I
    can't
    find the section NameVirtual Host on Apache's httpd.conf and
    it is
    much shorter than 950 lines.
    Malcolm N_
    ~Malcolm N....
    ~

    On Sun, 21 Jan 2007 11:49:47 -0000, "Dave Buchholz"
    <[email protected]> wrote:
    >Malcolm,
    >
    >a different David I know but you will find an updated
    tutorial on the "real"
    >David's site here
    http://foundationphp.com/tutorials/apache22_vhosts.php
    Many thanks David - I had found his revised tutorial on
    installing
    Apache - but I must have missed the bit on virtual hosts.
    That's great - I've not got all my sites working as virtual
    hosts (:-)
    Now to play with relative links / links to php include files
    in
    templates. !!!
    I'm going to try to get headers, footers and nav panels etc
    out of the
    main template(s), and do what Murray has been nagging
    everyone to do
    for ages.....
    I wasn't getting on well with that with before !! - standby
    for more
    questions.
    I had to read two of David's excellent books about three
    times - eh !.
    Malcolm
    ~Malcolm N....
    ~

  • Question for David Powers

    Hi David has helped so much and I have read two books but am
    stuck on one thing.
    You gave me a solution for submitting forms and validating
    with the inserted results returning, and I wrote ages ago saying
    the solution worked. It really did but then stopped. So I have been
    going through the Foundation Dreamweaver book for Dreamweaver 8
    even though I am using Dreamweaver mx 2004.
    I have gone through everything again ( well many times ) and
    I have it working again except that the form will not go anywhere.
    I will insert the code and see if you can tell me why. I
    would really like to understand so that I can continue to make many
    forms and have the correct validation.
    Thank you for your time, and I love the book!

    Thanks David I have had a look on Google and read about all
    the different types of patterns you can use - quite a lot.
    One last question on this subject of email and then I think
    my new directory will be ready (apart from design).
    If I am wanting to send the form above with contents as an
    email to myself on submission, should I place the mail()
    information just above the new location:
    $to = "";
    $subject = "";
    $message = "";
    $headers = "MIME-Version: 1.0\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\n";
    $headers .= "From: ";
    mail($to, $subject, $message, $headers);
    $insertGoTo = "signin.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    $_POST = array();
    ?>
    The email should only fire off when all errors have been
    cleared, but will there be a problem with the braces I have placed
    here.
    I understand the logic of the braces but am I breaking
    Dreamweaver's code too much?
    Hope this makes sense. I was aiming to place the mail() code
    above the error checking but thought it had to make its way past
    that first before sending.
    Thank you so much I am learning something from here everyday.
    It's a great forum.

  • Question for David Powers: specifying CSS

    Each of the pages in your East-West seasons demonstration
    website uses a
    somewhat complex indirect method for specifying the CSS rules
    applying to the
    page.
    The page itself contains the php statement:
    <?php include('style_rules.php'); ?>
    Which invokes style rules.php, which in turn links in
    basic.css, and imports
    bluebells_01.css:
    Style_rules.php------------------------------------------------
    <link href="styles/basic.css" rel="stylesheet"
    type="text/css"
    media="screen" />
    <style type="text/css">
    <!--
    @import url("styles/bluebells_01.css");
    -->
    </style>
    This somewhat complex sequence appears to have exactly the
    same overall effect
    as the two lines:
    <link href="styles/basic.css" rel="stylesheet"
    type="text/css" media="screen" />
    <link href="styles/bluebells_01.css" rel="stylesheet"
    type="text/css"
    media="screen" />
    1. What is the reason for going through this two-step
    process, rather than
    simply linking in the two files?
    2. Why is the second stylesheet imported rather than linked
    in?
    3. I gather that the only function of php in all this is to
    enable the contents
    of style_rules.php to appear in the original file as inline
    code. Is this
    correct?
    Clancy

    Clancy wrote:
    > Each of the pages in your East-West seasons
    demonstration website uses a
    > somewhat complex indirect method for specifying the CSS
    rules applying to the
    > page.
    >
    > The page itself contains the php statement:
    > <?php include('style_rules.php'); ?>
    >
    > Which invokes style rules.php, which in turn links in
    basic.css, and imports
    > bluebells_01.css:
    >
    >
    Style_rules.php------------------------------------------------
    > <link href="styles/basic.css" rel="stylesheet"
    type="text/css"
    > media="screen" />
    > <style type="text/css">
    > <!--
    > @import url("styles/bluebells_01.css");
    > -->
    > </style>
    > ---------------------------------------------------
    > This somewhat complex sequence appears to have exactly
    the same overall effect
    > as the two lines:
    >
    > <link href="styles/basic.css" rel="stylesheet"
    type="text/css" media="screen" />
    > <link href="styles/bluebells_01.css" rel="stylesheet"
    type="text/css"
    > media="screen" />
    >
    > 1. What is the reason for going through this two-step
    process, rather than
    > simply linking in the two files?
    If changes to the style sheet, styles/basic.css are made then
    they would
    update to every page which uses the php 'include'. I'm
    guessing that
    David is NOT using a template based site, which would
    effectively do the
    same thing.
    > 2. Why is the second stylesheet imported rather than
    linked in?
    'import' is used so that Netscape Naviagtor 4 only gets the
    page content
    and no css styling. A lot of css styling is not compatible
    with that
    browser. Its generally accepted for those developers that
    still support
    that browser only the content is good enough to provide.
    > 3. I gather that the only function of php in all this is
    to enable the contents
    > of style_rules.php to appear in the original file as
    inline code. Is this
    > correct?
    No, that answers in the response to your first question..

  • Attempting to upload files using the zend _file_transfer system from cs5 training from the source. [was: Question for David Powers]

    I am attempting to upload files using the zend _file_transfer system from cs5 training from the source.
    On trying to upload to a remote server I am having trouble with the destination setting (C:/upload_test) in the example, please could you point me in the right direction for the an example of this setting for a remote file transfer
    Also do I have to construct a connection file to activate a Ftp file transfer?
    David Woolston

    >I am on windows platform
    Who is your host? When you checked your host path in your host control panel, what did it say?
    >i have assumed (may be incorrectly) that the purpose of the exercise was to upload to a remote site (ie my website)
    That is correct.
    >Of course that upload might take place on a computer that does not have DW installed (an internet cafe for example)
    That's irrelevant. DW is just the tool you are using to build your site. The site runs on your hosting accounts servers. This includes the php scripts you are working with.
    >I have uploaded all files necessary for the operation, when i click upload it returns no such directory exits.
    Do you have a url we can check? What destination are you specifying in zend code?
    >This made me suspect that I would need to construct a ftp file transfer connection file to satisfied username, password , connection address etc
    The exercise you are dealing with is using http file transfer. This has nothing to do with FTP. You do not need FTP for this, other than using it to move your source code from your local client to your server.

  • Question for David Powers - Zend Framework

    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.

    Silken_thread wrote:
    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.
    Simple. You upload the Zend Framework to your remote server, and point $library to the new location.
    It's covered in Lesson 13 of the book (pages 468-469).

  • David Powers cs5 with php...Zend

    This one is aimed for David Powers. We are using your book for my advanved programming class. I continually have problems because they had us buy a domain instead of the one the book does it. At this point I'm on page 222ish, installing Zend. Obviously I'm using dreamweaver and my domain is with godaddy.com. I'm doing the section where you are are installing the library. I've got the library.php with no errors, I'm connected to my domain, and I have the zend file inside my local site folder. I've tried in the C drive but I cotinually get the same error:
    Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/79/7340479/html/library.php on line 4
    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1. 11.4-minimal\library') in /home/content/79/7340479/html/library.php on line 4
    I've tried putting the zend folder in c, desktop, in side local site folder and same thing everytime. Any help would be appreciated.

    Re: David Powers cs5 with php...Zend
    Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.
    First, are you trying to install zend at godaddy?
    Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines
    I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...
    the code I'm using is:
    <?php
    $library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\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 'We have a problem';
    I'm followed the book step by step but...
    when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site.

  • Issue for ch03 in Dreameaver CS5.5 Studio Techniques by David Powers

    Hello David,
    I am following your book.
    I read you was in Japan in 1994. Me too. :-). From 1994-1997. In Kyoto.
    My question is about the file index.html.
    When I removed most of the text, and have for intance:
    div id="wrapper">
      <div id="header" role="banner">
        <h1>Tozai Hotel</h1>
      </div>
      <ul id="nav" role="navigation">
        <li><a href="index.html">Home</a></li>
        <li><a href="rooms.html">Guest Rooms</a></li>
        <li><a href="dining.html">Dining</a></li>
        <li><a href="garden.html">Garden</a></li>
        <li><a href="reservations.html">Reservations</a></li>
      </ul>
      <div id="hero" role="main">
        <h2>Where East Meets West</h2>
        <p><i lang="ja">Tozai</i> is Japanese for &#8220;East-West.&#8221; It epitomizes the welcome we offer our guests, combining western-style luxury with <a href="dining.html">the best in Japanese cuisine</a> and hospitality.</p>
    <!-- text removed -->
      </div>
    </div>
    I have a strange begavior.
    Using an iTouch, my page is floating. And when I try to use Landscape and then return to Portrait, the page seemed to be zoomed.
    Sorry for my english.
    If you have an idea, it is welcomed.
    Jilusan

    I think you mean our Community Professional, David Powers. If you want to specifically contact him, you should send him a Private Message with a link to this thread here: http://forums.adobe.com/people/David_Powers
    Coming to answer your question, post your CSS file here. The styling is managed by the CSS, not by the HTML. Only with your CSS we can help you.

  • David Powers' tutorial, "Setting up CF development environment for DW"

    I left this comment for Mr. Powers at the end of his tutorial and was advised to post here by the Moderator:
    I had no problems until the very end:  can’t display the final page in Live View or in any browser.
    One anomaly in the CF installation:  Adobe strongly advises running the CF 9.0.1 update [ http://kb2.adobe.com/cps/849/cpsid_84973.html ].  I ran this update after completing your installation procedure and before “Setting up in DW” for the Mac.  The “Update successfully installed” window included the following message:
    “SolR server has been upgraded. Re-index all the collections.”
    Having no idea what that meant, I proceeded to create the CF site in DW.  No variations from your text until Item #9, “Create a ColdFusion data source”:  my text box was labeled “Database FOLDER,” not “Database File” per your tutorial.  
    Where did I go wrong?
    Mac Pro Intel, OS 10.6.7, MAMP installed but not running at the time.
    Can anyone here help me?

    ilssac wrote:
    WolfWB wrote:
     Where did I go wrong?
    Not nearly enough of the CORRECT information here to provide any sensible help.
    Code snippet (small, but relevant sample code showing the problem.... not entire page dumps)
    Description of expected results
    Description of actual results, including error messages if relevant.
    Description of why the actual results are not correct if it is not clear to the casual observer.
    WolfWB wrote:  “SolR server has been upgraded. Re-index all the collections.”
    SOLR is a text search engine that is included with ColdFusion to provide, you know, text searching capability.  When you upgraded to the newer version of CF, that included upgrades to the SOLR engine which would have invalidated any text search indexes previously created.  So you would need to re-index the text collections to recreate those indexes.
    If none of that makes ANY sense to you, then you most likely have NO text Collections with NO indexes for those collections and thus have NOTHING to re-index so that message PROBABLY had NO relevance to any issues you are experiencing.
    First, thank you for trying to help, ilssac!  I apologize for the frustration I caused, but this was my first encounter with CF;  I'd installed it purely to get through a Dreamweaver tutorial.  Second, I haven't a clue about where to collect a code snippet to send you.  Providing a link to the tutorial and pointing you to the very last instructions are the best I can do:  start at the subhead, "Create a ColdFusion data source," steps #1 through #13 and Figures #22 and #23.  The expected result is a correct DW Live View display of the HTML page populated with data drawn from a database (Fig. #23)  instead of the "dynamic text objects" (Fig. #22).
    Regarding the SolR, you're undoubtedly right about nothing having been created in CF, ergo nothing to re-index.
    FYI, the original CF installation was on my Mac Pro.  I did exactly the same installation -- in exactly the same way (per the tutorial) -- on my MacBook Pro, and got the same result.  The tutorial predates the 9.0.1 upgrade which looks to me, the absolute CF novice, like the source of the problem.  I'd still like to get it to work, if only to justify the time I've put in!

  • Stuck in Tutorial 2 of David Powers tutorials "Build dynamic sites and web applications".

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

  • Is this a CONCAT problem re: David Powers, or a Magic Quotes problem...

    I've tried to figure this out with the posts (and some info
    on David's site, etc), and I just can't seem to figure out the real
    problem.
    I'm working on a tutorial and I can't figure out if the error
    message is correct and it's improper coding inserted by DW (and if
    so, I can't figure out what to correct) or
    If this is a problem with DW8.0.2 along the lines of what the
    hotfix that seems to be so hard to get will fix, or
    If this is along the lines of an example of why magic quotes
    should be turned off, and if so, where/how do I turn them off, and
    will that correct the code, and if not, how would it be properly
    corrected?
    Here is the error message:
    Parse Error: parse error, unexpected '=', expecting ',' or
    ')' in <thefile> on line 34.
    Here is the code it is referencing:
    32 $Search_rsSearch = "abc";
    33 if (isset(#txtSearch#)) {
    34 $Search_rsSearch = (get_magic_quotes_gpc()) ? #txtSearch#
    : addslashes(#txtSearch#);
    35 }
    36 mysql_select_db($database_dorknozzle, $dorknozzle);
    37 $query_rsSearch = sprintf("SELECT * FROM EmployeeStore
    WHERE ItemName LIKE CONCAT('%%', %s,
    '%%')", GetSQLValueString($Search_rsSearch, "text"));
    38 $rsSearch = mysql_query($query_rsSearch, $dorknozzle) or
    die(mysql_error());
    39 $row_rsSearch = mysql_fetch_assoc($rsSearch);
    40 $totalRows_rsSearch = mysql_num_rows($rsSearch);
    I'm using php4.4.4, mysql5.0.24, apache2.2.3
    Thank You,
    Jeff G.

    xViPERed wrote:
    > If this is a problem with DW8.0.2 along the lines of
    what the hotfix that
    > seems to be so hard to get will fix,
    That will fix part of your problem, but the error is caused
    by something
    else:
    > Here is the error message:
    >
    Parse Error: parse error, unexpected '=', expecting ',' or
    ')' in
    > <thefile> on line 34.
    >
    > Here is the code it is referencing:
    > 32 $Search_rsSearch = "abc";
    > 33 if (isset(#txtSearch#)) {
    > 34 $Search_rsSearch = (get_magic_quotes_gpc()) ?
    #txtSearch# :
    > addslashes(#txtSearch#);
    > 35 }
    # is one of the PHP characters used to comment out part of a
    script. I
    suspect that you have got this from the Dreamweaver help
    files, which
    are particularly unhelpful on this point. The show the
    runtime value
    expression as #formFieldName#, which is ColdFusion style, not
    PHP. You
    need to replace #txtSearch# with something like
    $_GET['search'] or
    $_POST['search'].
    What makes things worse is that the code inserted by 8.0.2
    without the
    hotfix is also incorrect. Line 34 should be something like
    this:
    $Search_rsSearch = $_GET['search'];
    Line 37 is also wrong.
    > 37 $query_rsSearch = sprintf("SELECT * FROM
    EmployeeStore WHERE ItemName LIKE
    > CONCAT('%%', %s,
    > '%%')", GetSQLValueString($Search_rsSearch, "text"));
    It should be this:
    $query_rsSearch = sprintf("SELECT * FROM EmployeeStore WHERE
    ItemName
    LIKE %s", GetSQLValueString("%" . $Search_rsSearch . "%",
    "text"));
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • More questions for David

    1. Auto close.
    I put in the code you suggested, and, after a hell of a lot
    of messing around it
    came good, and now works. I don't know why I had so much
    trouble, or why it
    suddenly came good (suspect mismatched braces or types of
    quote, but thank you.
    Now I've got to put up a Thank you message, wait a second or
    two, and then close
    the box.
    2. IE error box
    You wrote:
    >No, the warning messages won't be displayed if the IE
    error box pops up.
    >However, if you enter a series of spaces in the name
    field, as described
    >in step 14 on page 183, the JavaScript validation will be
    fooled, but
    >the PHP validation will stop the form from being
    processed, and the
    >warning message will appear.
    more
    As I read step 14, it is just one step in testing along the
    way. It doesn't
    seem to have any relevance to permanently disabling the IE
    error box?
    3. Text box width. As I only intend to use one feedback form,
    I removed your
    CSS file specifying the form dimensions, etc. According to
    everything I can
    find, you can specify the length of a text box in either
    characters or pixels.
    I currently have:
    <input type="text" name="name" id="name" maxlength="30"
    <input type="text" name="email" id="email" width="600px"
    maxlength="50"
    Dreamweaver shows a quite small name box, and a much longer
    e-mail box. However
    they are both 20 characters long on the actual form.
    Maxlength works, but the
    box length does not seem to be affected by changes to the
    specified values.
    4. Text font style in text input box.
    I would have thought that the bodystyle text would be used
    for the form inputs,
    but it isn't, so where is it defined?
    5. Form prettification
    Can you, for example, put a table inside the form, and then
    put the name, etc,
    into different cells?
    Thank you for all your help.
    Clancy

    Clancy wrote:
    > Now I've got to put up a Thank you message, wait a
    second or two, and then close
    > the box.
    I'm quite willing to provide assistance with problems arising
    from my
    book, but this goes considerably beyond that.
    > As I read step 14, it is just one step in testing along
    the way. It doesn't
    > seem to have any relevance to permanently disabling the
    IE error box?
    Yes, it's simply a method of testing.
    > <input type="text" name="email" id="email"
    width="600px" maxlength="50"
    The <input> tag does not have a width attribute. Its
    width is controlled
    by the size attribute. In Dreamweaver, this is set by
    entering a value
    into the Char width field. For most web pages, the maximum
    should be no
    more than about 60.
    > I would have thought that the bodystyle text would be
    used for the form inputs,
    > but it isn't, so where is it defined?
    Create a CSS class and apply it to the text fields.
    > 5. Form prettification
    >
    > Can you, for example, put a table inside the form, and
    then put the name, etc,
    > into different cells?
    Yes.
    Although these questions have arisen from working through my
    book, most
    of them are general HTML/CSS/web design issues that would be
    more
    appropriately addressed to the forum in general. I try to
    give a high
    level of support to my books, but I hope you understand that
    my time
    (and knowledge) are not unlimited.
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • Customer statement smartform

    Can you  please let me the smartform name for customer statement. Thanks, Pedda

  • Webservice​s remove service name and port from the URL

    Hi community, so I have a server PC called "superlab"(*) and I also have a webservice called "superlab"(*). Now the users need to enter superlab:8001/superlab to the browser to access the service. I'd like them simply enter superlab. So my questions:

  • Podcast not appearing in Search

    I began a new podcast 1 week ago (Recovery Meditations), and it appears when I look it up by title, but it does not appear when I use some of my keywords to search for it. I have pinged the site daily, and the podcast captures all of my new episodes,

  • Issue creating ConnectionPool as per documentation in 974949.1

    Hello all, I am using AIA 2.5 PMDM PIP to sync OPH and Seibel/BRM. We are configuring the connectionPool as described in 974949.1 in the SOA server (OC4J 10.3.1.4) hosting the AIA. However we are facing the below error as soon as we are trying to cre

  • Error upgrading 7.x to 8.2 - JBoss/Win/Turnkey

    I am upgrading a 7.x installation to 8.2.<br />My current install (7.2.2) is running at c:\adobe\livecycle.<br />I installed 8.2 at c:\adobe\livecycle8.2<br />I ran the configuration manager.<br />I selected the upgrade options and pointed to current