Hide regions in dreamweaver help

I need help please. I am using the server behaviour to show if there is no info.
I have three problems
1. I am a new comer so i am totally lost and learning as i go, now that we are passed the obvious, on to the code.
2. I also have in the list menu the option to select all cars but i dont know how to code for that because my database does not have a field for that.
3. Everything works without the server behaviour to hide records if the query is empty, the only problem is when i search i either get all the records or none at all. The rows are counted correctly but if i use the server behaviour given in dreamweaver i either display everything in my database or nothing from the database.
Please help i have been reading and troubleshooting but nothing is working
SEARCH PAGE:
<form id="searcMennuu" name="searcMennuu" method="post" action="VehicleListing.php">
<select name="vehicles" id="vehicles">
<option value="allCars" selected="selected">ALL</option>
<option value="Sedan">Sedan</option>
<option value="Jeep">Jeep</option>
<option value="Motorbike">Motorbike</option>
</select>
<input name="radioVehicle" type="radio" id="searchSale" value="Sale" />
Vehicles for Sale</label>
<label>
<input type="radio" name="radioVehicle" id="searchRent" value="Rent" />
Vehicles for Rent</label>
<input type="submit" name="searchButton" id="searchButton" value="Search" />
</form>
RESULTS PAGE:
mysql_select_db($database_ddd, $ddd);
$query_rsTest = "SELECT `year`, `model` FROM vehicles";
if (isset ($_POST ['vehicles'])) {  // Use $_POST, not $HTTP_POST_VARS
    $parSearch = mysql_real_escape_string ($_POST['vehicles']);
    $parSearch1 = mysql_real_escape_string ($_POST['radioVehicle']);
    if($_POST['vehicles'] == "Sedan") && ($_POST[radioVvehicles'] == "Sale"){
        $query_rsTest.= " WHERE vehicle_type LIKE '%$parSearch%' AND  vehicle_SR LIKE '%$parSearch1% ";
$rsTest = mysql_query ($query_rsTest, $ddd) or die(mysql_error());
$row_rsTest = mysql_fetch_assoc ($rsTest);
$totalRows_rsTest = mysql_num_rows ($rsTest);
<div class="showPage"><?php echo $totalRows_rsTest ?></div>
<?php if ($totalRows_rsTest == 0) { // Show if recordset empty ?>
    <?php do { ?>
<div class="output" id="Results">
    <p><?php echo $row_rsTest['year']; ?></p>
    <p><?php echo $row_rsTest['model']; ?></p>
</div>
   <?php } while ($row_rsTest = mysql_fetch_assoc($rsTest)); ?>
  <?php } // Show if recordset empty ?>

You'll get better answers to your PHP & MySql questions in the App Development Forum:
http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/

Similar Messages

  • Javascript Help Needed to Show/Hide Regions

    version 4.0.2.00.07
    Hello,
    I'm hoping that someone would help me with creating a Javascript function to Show/Hide regions.
    I have a Select List defined as Checkboxes that when clicked I would like to show specific regions that contain fields that are specific to that checkbox selection. There are currently four selections available. There are two selections that would show one region and the other two selections would show the other region.
    Please let me know if I need to clarify anything.
    Thanks,
    Joe

    There is an out-of-box solution that may help you - check out the "Customisation" section in the region properties.
    Otherwise, you might like to explore using a Dynamic Action to show/hide your region based on an event on your relevant checkbox.
    Either way, you should have a declarative solution when you thought you might need to hand-code some javaScript :-)
    ps - thanks for providing your Apex version.

  • Hide Region When Click On Region Name Then Region is Display

    Hi ,
    I want to hide region click on REGION NAME like This Report
    [http://apex.oracle.com/pls/apex/f?p=267:4:1532929568077413|http://apex.oracle.com/pls/apex/f?p=267:4:1532929568077413]
    thanks

    Hi,
    For that, I have created a "Hide Show Region on Title Click" Region Template
    Create a new Region Template through Shared Components. This should be created "From Scratch" as there is only one setting in the template that requires any content. When that has been created, edit the template and copy the following into the "Template" setting:
    &lt;script type="text/javascript"&gt;
    function toggle()
    var r = $x('#REGION_ID#body');
    r.style.display = (r.style.display == 'none')?'block':'none';
    &lt;/script&gt;
    &lt;table class="t18Region" id="#REGION_ID#" border="0" cellpadding="0" cellspacing="0" summary=""&gt;
    &lt;tbody class="hideshow"&gt;
    &lt;tr&gt;&lt;th class="t18RegionHeader"&gt;&lt;a href="javascript:toggle();"&gt;#TITLE#&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody id="#REGION_ID#body" style="display:none;" class="hideshowcontent"&gt;
    &lt;tr&gt;&lt;td class="t18ButtonHolder"&gt;#CLOSE#  #PREVIOUS##NEXT# #DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td class="t18RegionBody"&gt;#BODY#&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;Note that this example uses Theme 18 - so the class names shown here are "t18....". If you are using a different theme, you can find the correct class names from another region template.
    Andy

  • The Dreamweaver Help doesn't work

    Hi,
    The Help documentation doesn't show. When I access it - eg
    "Help > Dreamweaver Help" - the help window opens but it's
    completely blank. And when I search I just get the spinning wheel.
    Does anyone know why this could be happening?
    My install is:
    Studio 8 - academic version
    macbook pro
    osx 10.4.9
    Thanks,
    Josh

    My number is larger than yours. Of course, yours may be the
    correct one....
    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
    ==================
    "David Powers" <[email protected]> wrote in message
    news:f6lp1o$p6g$[email protected]..
    > hmstardis wrote:
    >> The Help documentation doesn't show. When I access
    it - eg "Help >
    >> Dreamweaver Help" - the help window opens but it's
    completely blank. And
    >> when I search I just get the spinning wheel.
    >
    > See if this helps:
    >
    >
    http://www.adobe.com/go/133bc2a3
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • Dynamic action - show/hide region based on LOV which returns ID

    Hi folks,
    this should be simple, so someone who works with dynamic actions.
    I have a LOV which is based on below query:
    select OBJECT_ID, KOD
      from x_data x;
    retuns:
       ID          KOD
        492961 BMW
        492964 VOLVO
        492960 MERCEDES
        492963 VOLKSWAGEN
        492959 SKODAItem :P200_KOD is based on LOV which displays KOD and returns ID.
    On my page I have also 1 region called TEST_REGION.
    I would like to set up a dynamic action shich will SHOW/HIDE a TEST_REGION based on selected value in item :P200_KOD (LOV). Region should be showed if displayed (KOD) value of selected ID starts with 'V%'
    By other words, if below query returns any record, then SHOW, else HIDE:
       select *
        from x_data x
      where x.kod like 'V%'
         and x.object_id = :P200_KOD;How should I define a triggering condition for dynamic action, for item :P200_KOD?
    Thanks,
    Tomas

    Hi,
    One way:
    Create advanced dynamic action.
    Name : Hide region
    Event : Change
    Selection Type : Item(s)
    Items(s) : P200_KOD
    Condition : JavaScript Expression
    Value :
    $(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"Action : Hide
    Fire On Page Load : True
    Hide all page items on the same line : No
    False Action : Show
    Fire On Page Load : True
    Show all page items on the same line : No
    Selection Type : Region
    Region : TEST_REGION
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Is there any way to hide region names?

    I recently switched from garageband to Logic, and my only complaint is that there isn't a way to hide region names, which would give the same words-free editing experience as garageband.  If anyone knows of a way to do it, please post, thanks!

    Hi
    You could use the Text tool or the Region Parameters to clear the default names:
    CCT

  • Ex frontpage user new to dreamweaver help!

    hello all,
    I am very new to dreamweaver MX and have only ever used
    frontpage 2000. I just dont know where to start and was hoping for
    some quick advice.
    In frontpage you could see the navigation pages so you just
    click on one or create a new page. It was very user friendly. I am
    creating a very basic page so my first question is how do i create
    a website? title it "my acting website" and start with an index
    page with a template/title that will go on every page i create.
    Do you recommend any tutorials? if there are any for creating
    a basic website?

    Have you looked at the Dreamweaver help files themselves ? F1
    and do a
    search for ' Templates'
    You need to create a basic dreamweaver template, with all the
    elements that
    will be on every page and declare an editable (an area that
    changes on every
    page - eg: content area) . You then would create 'children'
    pages from
    this template.
    A basic knowledge of html and css would be advantageous to
    you also :)
    You may also want to check out the css tutorials at the Adobe
    site - (last
    link in my sig)...
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    ~ Forum Posting Guidelines ~
    http://www.adobe.com/support/forums/guidelines.html
    CSS Tutorials for Dreamweaver:
    http://www.adobe.com/devnet/dreamweaver/css.html
    "waddsy" <[email protected]> wrote in
    message
    news:evv669$ps1$[email protected]..
    > hello all,
    > I am very new to dreamweaver MX and have only ever used
    frontpage 2000. I
    > just
    > dont know where to start and was hoping for some quick
    advice.
    >
    > In frontpage you could see the navigation pages so you
    just click on one
    > or
    > create a new page. It was very user friendly. I am
    creating a very basic
    > page
    > so my first question is how do i create a website? title
    it "my acting
    > website"
    > and start with an index page with a template/title that
    will go on every
    > page i
    > create.
    >
    > Do you recommend any tutorials? if there are any for
    creating a basic
    > website?
    >

  • Hide region if no data found in another region

    I have 2 regions on a page.. I'd like to hide the second region if no data is returned by the SQL query in the first region.
    I know that the obivious way to do this is to use the same SQL in the second region and make it conditionally display. But I don't want to run the SQL twice against the database for performance reasons.
    Is there any (preferably easy) way to check the contents of Region 1 from Region 2 and hide Region 2 if Region 1 has no data in?

    Hello,
    You can write a javascript function, that will check whether you report has any rows, if not will some APEX flag item.
    For example, after the report will be fetched you can write something like this:
    <script type="text/javascript">
    var els = document.getElementById('R1708927825979432').rows;
    if (els==0){document.getElementById('P1_FLAG').value=0;}
    </script>
    I'm not exactly sure that it will work, but you can try....
    Best Regards, Kostya Proskudin.

  • Dynamically show/hide regions out of the application workflow

    hi,
    is it possible to show/hide regions of a page dynamically with a "select list with submit" item?
    regards

    Hi,
    Do you mean "Conditionally display" items based on the value of a Select List with Submit?
    Andy

  • Dreamweaver help! creating navigation bar?

    how do i create a navigation bar. my dreamweaver help says a
    nav bar has a up. down and over image but doesn't actually tell me
    where to get this image or how to create it??
    if this is going to be too complex i don't mind just having
    my nav bars as text link but can't seem to spread my 7 links out
    horizontally as i can only have two space bar in between each text?

    You and me both my friend! I just got off the phone with
    "tech support" trying to pay for a single incident ($35) so they
    could walk me through putting a navigation bar on my website. It's
    so frustrting dealing with some of these techs. I don't want to be
    politically incorrect here, but I always wind up with someone I can
    hardly understand ( accent ). This stuff is hard enough to follow
    with a language barrier. Then I called in to tech support, they
    told me I had to pay that I was out of complitmentary assistance,
    so they transferred me to sales, who after speaking to two more
    people I had trouble understanding, I was transferred back to tech.
    support who asked me if I had paid for a plan! Then she says she
    can take the credit card etc., when I got through with that she
    tells me that she can't walk me through putting the nav. bar
    directly on my web site, that I'll have to open a new page and to a
    sample one. ( which means when I finish I'll have to remember all
    the steps and try to duplicate it on my own site. ( you know how
    that goes! ) It's infuriating. I wound up spending an hour and got
    nothing, they couldn't even just charge my card so I'd have credit
    toward one call later. ( I had to go after dealing with this for 45
    minutes)
    Anyway, You have to go to Firefox or maybe photoshop to
    create the background image. I did some in Firefox, but for the
    page background, not the nav. bar. You would open a new page, put
    in the size ( pixels ) you need, then use the rectangle tool to
    outline that which selects it. Then you can go to the bottom of the
    screen and select the color and gradient tool to create some cool
    color effects. The thing I don't know is how to know exactly what
    size your navigation bar is going to be ahead of time so to size it
    right. I understand it has to be exact. This tech told me that they
    can't help with any "design issues", like color, where it goes in
    your website, etc. If they talk you through how to do it on a blank
    page and then you have trouble on your real website, well that's
    another issue and another $35. But I don't even understand if they
    will help you on the real website. NIGHTMARE!!!!

  • Printing: Hidding Regions

    Hi Everyone!
    I have this page that has 3 regions. the first region has buttons, the second has a list of items and the third contains the table. I would only like to print the region that has the table when going to File->Print without selecting the "Print selected items" option from the web browser. Plus I would like for my people to go green and print less pages as possible, trying to condense everything to one page.
    Is there a way when printing a page some items can be hidden so everything can fit in one page?
    Thanks,
    Bino

    Hello Bino,
    >> I was trying what you suggested and it seems that regions cannot be hidden when I try to print.
    I’m using this technique myself, so I know that when applied correctly it is working.
    >> Any help?
    It’s hard to help you when you didn’t give us any information about what you did, the code you have used, etc. However, the following is a code I’m using in one of my pages, to hide a region:
    <style type="text/css">
    @media print {
      #R3404110703102951 {
         display: none !important;
    </style>The ‘R3404110703102951’ is the specific region ID you want to hide. You must use a specific CSS ID selector so other regions on the page, which are using the same generic region class, will be printed.
    If this example is not enough, please give us some more information about your scenario, or even better, put an example page on apex.oracle.com.
    Regards,
    Arie.

  • Hide Toolbar and Value help drop downlist

    Hi,
    I created a IF with a Value help drop down list. I also make use of the Hide Toolbar options. The drop down list has an input like:
    key - text (eg. 0001 - Holiday)
    The pdfMode is "UpdateDataInPdf".
    When i run my wd everything works fine. What i want to do is this: when the user push the button "next" i want to show the IF in a read-only mode. What i did, is that when the user push to button i change the PdfMode from "UpdateDateInPdf" to "GeneratePdf" (also tried "UsePdf") and change the "enabled" property to false.
    What happens is, the Adobe toolbar is back and the value help dorp downlist shows the key instead of the text.
    If i don't change the "enabled" property it works well, but than it's still possible to change data in the form.
    I am using NW04 SP16.
    Hope somebody can helps me.
    Kind regards,
    Maarten Duits

    Hi Maarten
    in general, right now there is no standard (i.e. non-hack) way to make a physical interactive PDF form read-only.
    The only sure way this would work in your process is to send the data back to the backend and have a second (practically identical) template ready in the background to generate a read-only version of what the user saw previously.
    Best regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • How to Open a New window from a List region Link, Please help

    I am trying to get a new full window( Not popup window) open from a list region link. The list region entry is an Image. I get the new page open, but it is not in new window, it is in the same window.
    I know I have to give the target = "_blank" somewhere. But In List region, I dont know where to add this.
    Please help
    George

    Yes, you are right Arun. That is more elegant way of
    doing it. Keep it up. thankx..
    Btw, why do you hate javascripts? Can you imagine the
    internet world without javascript (or ant scripting
    language)?yep i agree... but i try my best to avoid scripts.. as i had been workin around some japanese technologies... and there are three major mobile market players there... who has their own content type and all those devices never support javascript..
    more over i donno that... in all 3 yrs i have never used that ;-))

  • How do I link this drop down menu created in Fireworks when I export to dreamweaver, Help!

    Hello everyone,
    Thank you in advance for dealing with my inexperience and answering my question.
    I have been stuck on this for wayyyy too long. Here is my problem. I created a drop down menu for a portfolio website I am building. When I pull this into Dreamweaver the way to link the menu items to the pages is elusive. I have no idea what to do. Please help?
    Here is the screenshot. Thank you very much     Jennifer
    OK, Well no one can actually see this image since it came in so small, but please help me anyway if you can?

    Thank you for answering my question. I created the graphics in photoshop, sliced them in fireworks and now I am pulling the site in dreamweaver to link it. The dropdown is just a little dropdown menu. I created it in Fireworks because when I tried to create one in Dreamweaver I had to use a spry which was even harder to figure out and get to work. If I knew Html or CSS my life would be much easier but I don't. I don't have much time to learn it right now since I work over time all week, do graphics freelance and I go to school for computer science. I need to get this site up and I just want a fast little fix to get it up. When I have time to learn more I can make this site better or start a better site, but for right now it just needs to work. Is there a way to get what I have working so I can just get this site up. Later I will have more time and more experience to do this better. I am learning so thank you for your experience.
    Thanks,
    Jennifer

  • Flash Dreamweaver Help!

    I created a wonderful photo gallery using Flash CS3 to
    integrate into my website that I am creating in Dreamweaver CS3.
    I've been a good doobie and relied on code instead of design mode
    in Dreamweaver. My problem is that the photo gallery I created in
    Flash works fine when testing the .swf file. It contains two
    UILoaders, one for the photograph and one for a graphic title for
    the photograph. I am using "arrays" for the actionscript for both
    UILoaders and for a dynamic text item within the Flash file. When I
    bring the final .swf into Dreamweaver, the only thing that's
    functional is the dynamic text. The images do not load when
    executing the actionscript. I am a total newbie with this and have
    been very successful with everything I've done up to this point,
    but now I'm scratching my head. I've got to be missing something
    and hope that someone can shine a light on my problem.

    Although I have completely no idea whats happening, I usually
    find its useful to publish to HTML from Flash to test. Have you
    tried that?
    You might also want to change your publish settings to detect
    flash version and then publish to HTML so you can copy over the
    detection code....?
    See if that helps any otherwise - sorry!

Maybe you are looking for

  • Problem with images in zune

    i couldn't found the images in the files when i want to drag it to my lumia 800 with zune. can anyone help?

  • How do I make a new backup file of my current library?

    I just finished locating all my music in my C drive (manually & individually!) since 7.7 wiped out my library and I would like to make a completely new backup file location of this library so that all my music is in one location (just in case, for ne

  • IPad air apps

    My son pressed something on my iPad air that deleted some games. Now  when I download an app, it goes to my husbands iPad mini and I am unable to open it on my iPad air. All my previously downloaded apps work fine. We went to iTunes and out info in a

  • How do you create a slide show to a wmv vile?

    I use photoshop Elements 7 I have created several slideshows of my granddaughters wedding, I would like to save them as wmv shows on a DVD but I get a message that the wmv file wasn't created. help did not help solve my questions.

  • BADI for saving a complaint

    Hi all, I have a requirement as follows: There is a complaint ticket when the status is set to "Compensate by money " or " Compensate by product"  and SAVED then the mail should be sent to the respective sales office unit head mentioning the status