Problem updating rows of recordset with repeat region

Hi,
So here's what I'm trying to do - I have a repeat region displaying a series of rows from a recordset. Each row has an "id" value and a "Votes" value. The id value is just an identifier, and the Votes value is the total number of votes. The rows are then organized by the Votes column in descending order (so that the row with the "most Votes" is displayed at the top). The whole thing is set up in kind of a table, so each row has a "Vote" button. When a user clicks the button it is supposed to increase that row's Votes by 1 - in effect creatign a Digg-style system.
I'm having two problems-
1. How can I get id value for the current row when using repeat region? I would assume that I first have to figure out the row, but how would I got about this?
2. This is probably a much simpler problem, but how do I add to a mysql integer instead of just replacing the number? Is there any add function? Or can I do it the "BASIC way" (x = x + y)?
Now for my code. What is here right now is a pretty simple "frame" of a website using PHP for the server-side scripting and MySQL for the database. Also, most of the PHP is generated by Dreamweaver, since I'm pretty novice when it comes to PHP.
Here is my "repeat region" section alone-
<?php do { ?>
    <table width="780" border="0">
      <tr>
        <td width="195"><?php echo $row_all['Title']; ?></td>
        <td width="195"><?php echo $row_all['Genre']; ?></td>
        <td width="130"><?php echo $row_all['Year']; ?></td>
        <td width="130"><?php echo $row_all['Votes']; ?></td>
        <td width="65"><a href=<?php
          $id1 = $row_all['id'];
$con = mysql_connect("localhost","root","");
if (!$con)
  die('Could not connect: ' . mysql_error());
mysql_select_db("dig", $con);
mysql_query("UPDATE list SET Votes =300 WHERE id = '$id1'");
mysql_close($con);
?> >+1</a></td>
        <td width="65">-1</td>
      </tr>
    </table>
    <?php } while ($row_all = mysql_fetch_assoc($all)); ?>
And, for the sake of completition, here is the entire file-
BANNER
MENU
CONTENT
  LIST                                                                     
+1
-1
Just let me know if you need any more info, and thanks in advance!
-B

Hi David,
I read your reply and thankyou, but I am not sure I fully
understand. Could
you be a little more specific please.
"David Powers" <[email protected]> wrote in message
news:e9vsg2$ljd$[email protected]..
> JED wrote:
>> Why is this and what can I do?
>
> Answered your duplicate post in the main Dreamweaver
forum.
>
> --
> David Powers
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
> Author, "Foundation PHP 5 for Flash" (friends of ED)
>
http://foundationphp.com/

Similar Messages

  • IPhone 3G update to 3.0 with repeated 1013 errors - now bricked iPhone! ;-(

    Attempting to update an iPhone 3G to 3.0 from 2.2.1 and it's now a brick.
    Note that I've tried this now from THREE different computers, two macs and one windows box with identical results. I've uninstalled iTunes on the windows box before doing the update attempt.
    The error message is "1013" which also takes you to this highly uninformative page: http://support.apple.com/kb/TS1275.
    Ok, the USB cables and ports on three computers see the same problem error. So it's either the iPhone itself or iTunes 8.2 (23) or both.
    Digging a bit deeper I found that there is a log file kept on the mac. Change to this directory from your home directory "~/Library/Logs/iPhone Updater Logs/" where you'll find one "iPhoneUpdater N.log" file for each attempt to update that you've done.
    When the error occurs Apple asks if I want to send the info to them! YES!!! Make sure you do so that they can sort this out.
    Ok, looking in this log file (I won't dump it all here) you can see a number of errors. The end of the log file shows:
    Powering radio on through AppleBaseband
    - Ping failed, trying again, 21 tries left
    - Ping failed, trying again, 20 tries left
    - Ping failed, trying again, 19 tries left
    - Ping failed, trying again, 18 tries left
    - Ping failed, trying again, 17 tries left
    Exception at :0:
    - BBUReturnTimedOut(10)/16: Pinging timed out
    unexpected bbupdater exit code 16
    ==== end of device restore output ====
    2009-06-17 23:39:34.000 iTunes124:11483: <Restore Device 0x188a3ef0>: Restore
    failed (result = 1013)
    2009-06-17 23:39:44.000 iTunes124:20b: iTunes: Restore error 1013
    Clearly there are some problems. Earlier in the log file it had problems updating a number of files.
    Now I've tried this "Connect your iPhone to the computer. press and hold sleep and home, and as soon screen goes blank, count off 5 seconds, then let go of sleep and keep holding home." That didn't change anything. sigh.
    It's almost as if this particular version of the iPhone that I have is incompatible with the current iPhone 3.0 operating system components. Maybe there is a bad driver? Hmmm....
    Ok, here is another error in the log file.
    Loading FLS file /usr/local/standalone/firmware/ICE2_04.26.08.fls...OK
    Sending Block of type CodeClass(0) from file /usr/local/standalone/firmware/ICE2_04.26.08.fls...
    Beginning Dynamic EEP erase at 0x20E40000 to 0x20EBFFFE...Progress: 0 percent, 0 of 524286 Progress: 100 percent, 524286 of 524286. OK
    Sending Security Block...OK
    Erasing Load Area from 0x20040000 to 0x2068FF66 (this will take some time)...OK
    Sending data for mapping 0: progress: 0 percent, 0 of
    6618984 progress: 0 percent, 2048 of
    6618984 progress: 0 percent, 4096 of
    6618984 progress: 0 percent, 6144 of
    6618984 progress: 99 percent, 6617088 of
    6618984 progress: 100 percent, 6618984 of 6618984. -- OK
    Checking validation result... - Warning: Validation result code indicates failure, result code = 0x0
    So clearly the file "/usr/local/standalone/firmware/ICE2_04.26.08.fls" isn't transferred properly! Something is amiss somewhere...
    Could it really be that it can't download the update file to the iPhone due to USB problems? Surely Apple has access to fault tolerant file transfer protocols they can use?
    Sigh... now I'm without my primary phone... grrrr... arrrrg... should have waited....
    Apple maybe you could learn something about "ACID TRANSACTIONS" and include them into the update process to guarantee either 100% success or 100% abort rollback?
    I don't know if this is relevant but now in iTunes on the iPhone page it no longer shows any values at all for the "name, capacity, software version or serial number" fields which is kind of spooky. Does this mean that I need to take the phone in for service? Is it permanently toast?

    Just visitied the Apple Store in Vancouver and wasn't allowed in! They had a wall of orange shirts AND two mall SECURITY guards preventing people from entering UNLESS you were there to purchase a new iPhone 3GS!
    The orange shirt gave me grief refusing to allow me to see a service person! So I asked to speak to his manager. Matt showed up and read me the same riot act of BAD CUSTOMER SERVICE!!! They claimed it was the first day since they opened that they closed their Genius Bar!
    The fact remains that it was APPLE's Update that bricked my iPhone that I depend upon.
    So the manager went off to get his boss when I asked him too. I think he was just glad to get away from a rational insistent customer spoiling their wonderful happy Apple day selling new phones.
    So a non-technician showed up and offered to take my phone into the store and try to update it. She lied. She returned to tell me that my warranty was expired due to the "water litmus" paper being RED. ***? You've got to be kidding! I've NEVER had it anywhere near water! The lie was that she didn't actually try to connect it and that she was going to secretly find out if my warranty was void. Not what I call informed consent.
    So I asked her to check and try updating the phone anyway and off she trundled. Less than no time she returned telling me that my iPhone couldn't be seen by three of their computers! ***! It was working on my three computers at home!
    In fact as I type this it's running another update this moment. About 3/4 done.
    So now Apple's Update Bricked my iPhone which was working perfectly without any problems. If they hadn't brought their update out the phone would still be working just great!
    Needless to say I'm extremely annoyed yet composed (for the moment).
    So my options at this point seem to be to (1) replace the phone for ~260.00 CAD or (2) upgrade to a 3GS for an indeterminate amount if FIDO permits it, or (3) hope that Apple home base gets their act together with a new iTunes update which can at least get the phone working again, (4) toss the phone off a bridge, (5) sue Apple and FIDO for their negligence in providing faulty software updates that bricked the phone. Grrr... Arrrggg....
    Oh, it just failed the update again! At least it can be seen by my computers (two mac and one vista box).
    Ok, now what...
    CHECK YOUR iPhone warranty voided strips to see if they are RED/PINK! If it's only iPhones with RED that are the problem then maybe that's the cause. HOWEVER, if even ONE iPhone has this problem and it's not got a RED water strip then it's conclusive that the problem is elsewhere - basic diagnostic process and rock solid logic. Please check your RED WARRANTY VOIDED STRIPS and let me know here... you check them with a flash light at the bottom of your iPhone in the slot where the SIMM card is and where the dock/cable connector goes in. Shin the light into there and move the phone or the light about till you see either a 1/4 inch long strip - RED/PINK means you Apple won't honor your warranty or their craftsmanship.
    Ok... now to find out how much it will cost to upgrade to a 3GS on the FIDO plan. Sigh. Grrr... arrrggggg....

  • Contribute Acting strange - template parameters with repeating regions

    Basically what I'm trying to achieve is that there is a
    repeating region on a page, and each region is supposed to
    alternate colors. To achieve this, the regions with the colors are
    put into a div which has a background color applied to it. To do
    this, I have created two expressions, one to check to see if it's
    an even numbered region, and if so, to open the div, and another to
    close the div. That looks like this:
    quote:
    <!-- TemplateBeginRepeat name="Article" -->
    @@((_index & 1) ? shade : noshade )@@
    stuff
    @@((_index & 1) ? shadeend : noshade )@@
    <!-- TemplateEndRepeat -->
    At the top, I have three template parameters to go along with
    these:
    quote:
    <!-- TemplateParam name="shade" type="text"
    value="<div>" -->
    <!-- TemplateParam name="shadeend" type="text"
    value="</div>" -->
    <!-- TemplateParam name="noshade" type="text" value=""
    -->
    Which look like this on the actual pages:
    quote:
    <!-- InstanceParam name="shade" type="text"
    value="&lt;div&gt;" -->
    <!-- InstanceParam name="shadeend" type="text"
    value="&lt;/div&gt;" -->
    <!-- InstanceParam name="noshade" type="text" value=""
    -->
    The odd thing is that, when I add an editable region,
    something weird occurs with the template parameters and they end up
    looking like this:
    quote:
    <!-- InstanceParam name="shade" type="text"
    value="&lt;div&gt;" --><!-- InstanceParam
    name="shadeend" type="text" value="&lt;/div&gt;"
    -->->
    <!-- InstanceParam name="noshade" type="text" value=""
    -->
    And that, of course, results in having a nice "->" showing
    up at the top of my page. The repeating region appears to work. It
    changes background colors just like it should, but I have no idea
    why it's throwing in the "->" at the end.

    For grins, try changing this -
    <div id="content1" style="display:none">
    to this (IN THE TEMPLATE FILE) -
    <div id="content@@(_repeat._index)@@''
    style="display:none">
    (that should be a " character after the last @ sign - I had
    to use two '
    characters to keep the code from getting munged in my
    newsreader)
    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
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:g2m3cq$85h$[email protected]..
    >I need to see the template markup around the repeating
    region, please.
    >
    > --
    > 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
    > ==================
    >
    >
    > "ITLogic" <[email protected]> wrote in
    message
    > news:g2m25n$6se$[email protected]..
    >> Sure. I'm using DW CS3. Here is a copy of the
    repeating regions I'm
    >> trying to
    >> create. Notice each DIV has a sequential ID. I could
    go hand edit this,
    >> but I'm
    >> trying to automate it as much as possible. I am
    selling Contribute as a
    >> means
    >> for clients to edit their own content. Most don't
    know how to spell HTML
    >> much
    >> less know how to use it.
    >>
    >> <div id="content0" style="display:''">
    >>
    >> <!-- ADD TICKER's CONTENT #1
    HERE--------------------->
    >>
    >> <p>Hello</p>
    >>
    >> <!-- END CONTENT #1----------------->
    >>
    >> </div>
    >>
    >> <div id="content1" style="display:none">
    >>
    >> <!-- ADD TICKER's CONTENT #2
    HERE--------------------->
    >>
    >> <p>World</p>
    >>
    >> <!-- END CONTENT #2----------------->
    >>
    >> </div>
    >>
    >

  • Help with repeatable region

    HI I'm currently designing a site and am using master/detail
    pages linked to a database.
    The master detail page set function in dw8 automatically
    creates a repeatable region on the master page. I'm trying to add
    an image to that specific repeat region so that each result shows
    up with that image behind it (the image i'm using is a blank
    rectangle with a specific borderframe so that it appears that each
    result has this specific border)
    If i try adding as background image the image repeats itself
    but is out of line with the results! Any ideas how i can go about
    achieving what i'm trying to do, that is assuming I haven't totally
    bewildered you all in trying to explain it!!!!

    can i do that for each specific result? or will it not just
    border all results in that style
    the border i want is to match with button images etc... which
    have a glow effect edge to them

  • Help with repeating region server behavior

    Using instructions in David Powers' book, I've been able to connect to a PHP database and list records in a table using the repeating region server behavior.
    I now have a table like the following example:
    Header 1
    Header 2
    Album
    Image
    Birds
    Bald Eagle
    Birds
    Great Egret
    Birds
    Meadowlark
    Butterflies
    American Lady
    Butterflies
    Common Buckeye
    Butterflies
    Monarch
    Mammals
    Deer
    Mammals
    Flying Squirrel
    Mammals
    Raccoon
    etc.
    etc.
    Is there a way to make the table like the following?
    Header 1
    Header 2
    Album
    Image
    Birds
    Bald Eagle
    Great Egret
    Meadowlark
    Butterflies
    American Lady
    Common Buckeye
    Monarch
    Mammals
    Deer
    Flying Squirrel
    Raccoon
    etc.
    etc.
    Thank you for helping a novice with this.

    yubinax wrote:
    i downloaded a FREE RANDOM SERVER BEHAVIOR ON THIS SIET
    This is a user-to-user forum for the (discontinued) Dreamweaver extension 'ADDT' which doesn´t come with such a server behaviour. BTW, it´s hard to guess which extension you´re referring to exactly, and I suggest contacting the developer of that extension for help.
    Cheers,
    Günter

  • Send Email with repeat region data

    Greetings again,
    I'm building an application where users place orders for multiple items. And I don't know the best way to send them confirmation emails that include a table that shows the details of their orders. I know how to trigger the email send and that is working....I know how to put simple pieces of data into the email message and into its subject area....what I need is a way to retrieve the order item details and show them all not just the first one in the array....can anyone please point me in the right direction...I've scoured the manuals and tutorials and have not found any clues.
    Thanks for your help,
    Fred Shequine
    [email protected]

    Hi Fred,
    in this case I´d suggest using the "Send Page Section By E-mail" option, as the to-be-sent page (or a defined part like a certain table) can contain a Repeat Region.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Problem updating iPod 2.3 with dock connector

    Please help me! I downloaded the info to update my iPod, but when I click the update button, it says "the updater does not have a firmware image." What does this mean? What can I do to fix the problem so I can update my iPod software instead of restoring the factory settings?

    I have similar problem and have tried "Update". Message come up that some music files will not be updated. Unfortunately the only files it will not update to iPod are the files downloaded and paid for from Apple music store. I wonder if it is an iTunes 6 issue with older gen iPods? I have updated iPod software v 2005-10-12

  • Problem update IBAN bank details with IDOCs segment E1KNBKM

    Hi all,
    i use Idoc DEBMAS07 in which i use the segment E1KNBKM to create IBAN in customer bank details. If bank details do not exist, the IDOC is integrated, IBAN is created.
    If i recreated the same Idoc, with same data (just change bank name) the Idoc is in error with the message : 'No batch input data for screen SAPMF02D 0130'.
    In debugging, we see that the dynpro sequence is wrong. For vendors it's work. I can create and update IBAN.
    i don't find SAP notes, or help forum on this problem.
    Any ideas ?
    Thanks
    Edited by: ToraTora on Aug 17, 2011 11:16 AM

    maybe you are the first who encountered this error, open a call at SAP yourself

  • Problem updating Adobe Flash Player with Safari

    Hello!
    I'm trying to update Adobe Flash Player using Safari on a Macbook Pro with OS X 10.10.1 but every time I download the update the file looks like this:
    and when I try to start the installation this window appears:
    I tried several different download links but non of them worked. I also uninstalled the Adobe Flash Player and tried to reinstall it but then I have the same problem. Any ideas on what I'm doing wrong? Thank you!

    For some reason that I have yet to determine, people with Matlab installed start getting .mdlp extensions appended to their downloaded files.  That's what happened here.  Rename the file to remove .mdlp (so that it ends in .dmg), then double-click the file and it should work.

  • Problem updating row via OLEDB Provider (v10.2.0.1)

    We have an application that either updates or inserts a row into an Oracle 10g table.
    We found that every so often the connection hangs when trying to update a row. We soon discovered that during our testing we were deleting individual rows from the table and then the update of other rows failed.
    After a long period of time the system seems to sort itself out and allow the updating of rows again.
    Does anyone have any ideas what the problem is?
    Is it worth updating to a later version of the ODAC software?
    Regards
    DAK

    When you say the update 'failed', you're referring to the hang right? No errors? And when it hangs, it pretty much hangs the whole app until it fixes itself? How long does the 'hang state' last?
    Since the hang 'fixes itself', its not likely a hung or orphaned critical section, so my guess would be either 1) some sort of thread bottleneck on the client (if this is some sort of "multi user under load" scenario, or 2) the database is doing something goofy and the client is simply waiting for a response before it can continue.
    The way I'd try to get more information is to enable sqlnet tracing at level 16, and make sure to enable timestamps as well. Then let the app do it's 'hang and fix itself' type of thing, note what time-ish the hang thing was happening, and check the traces timestamp gaps. What I suspect you may find is a gap between a NSPSEND and NSPRECV call in the Oracle client. I dont have a trace handy to give you the actual calls though so I may not have those names quite right. However, if you see something like the following,
    [10:20:01.1234] nspsend ...  
    [10:21:34.4567] nsprecv ...that would indicated that the client send a packet and was waiting for a minute and half before the database sent a packet back, so you'd want to drag your dba in to have a look at that part.
    If you see no timestamp gaps of appreciable size (more than a second or so), and this is a "multi user under load" type situation, then you may want to get a memory dump of the app while it's in it's hung state , and again a minute or two later, and look to see 1) if threads are bottlenecked waiting for a critical section, 2) if they've moved in the dump that was taken a minute later. If you see that the thread that everything is waiting on has WSARECV32 in the stack, that generally means its in socket receive state though, which leads back to the "waiting for the database to respond" situation.
    Use debugdiag to get and do a first pass analysis on memory dumps, and you get get info on [sqlnet tracing here|http://www.oraclefaq.net/2007/05/02/how-to-enable-sqlnet-client-side-tracing/].
    I don't have any compelling reason to believe that upgrading oledb will help, but if you're using 10201, and the 10201 client as well, I'd recommend going to 10204 purely on general principle, and you do that by applying the 10204 rdbms patch to the client machine, and that will patch both OraOledb as well as the underlying client librarires.
    Hope it helps, I know its a little vague on the details.
    If you need further help and have access to Oracle Support, we could certainly give you a hand sorting it out.
    Cheers,
    Greg

  • JSF: Problems adding rows to table with custom method

    Since this being my first post, I find it only appropriate to thank the development team for such a huge addition to the application development world. You guys rock. You have cured my Java identity crisis. That being said...
    I have been stumped for days. I'm making a simple web cart. I am trying to get two string values (name and price) passed through a custom exposed application module method ran on a backing bean. What I want the exposed VO module to do is, upon receiving the two strings, create a new row on the empty data controlled table I have built to store them. Basically I just need to add rows to a table with my custom managed bean. Most recent version.
    I have written a test method to make sure my backing bean and exposed app module impl were working. This test works:
    //WORKS
    //CartInfo.java   
        public String cb1_action() {
            AppModuleImpl am = new AppModuleImpl();
            am.testMethod();
            return null;       
    //AppModuleImp.java
        public void testMethod() {
            System.out.println("WORKS");      
        }I found some code on how to add rows and unfortunately it isn't working out for some reason. Here is what is producing the error "Caused By: java.lang.NullPointerException" :
    //DOESN'T WORK IN CUSTOM METHOD BUT WORKS WHEN DRAGGED ON TO THE PAGE AS A COMMAND BUTTON
    //CartInfo.java
        public String cb1_action() {
            AppModuleImpl am = new AppModuleImpl();
            am.testMethod("test", "test");
            return null;
    //AppModuleImp.java
           public void testMethod(String pName,String pPrice) {
            ViewObjectImpl vo = this.getCartVO1();
            Row r = vo.createRow();
            r.setAttribute("NAME", pName);
            r.setAttribute("PRICE", pPrice);
            vo.insertRow(r);
    //The VO attributes for the DC are:
    // Name : Type : Alias Name : Entity Usage : Info
    NAME : String : NAME : (blank) : Transient
    PRICE : String : PRICE : (blank) : TransientSo what I have so far is a table linked to my database. A user can select and click on a product on the row's individual Add button and using a modified selection listener, it returns the values to the backing_bean.
    Then what I want it to do is have those variables passed to the other table. I just can't put it together.
    Please if there is anyone that could send me in the right direction I would greatly appreciate it!
    Thank you,
    Jack

    if i understand you, you want to call application module method when user clicks on add button on the UI and your table is from VO
    so what i can come up for now is:
    1) create variable binding from the iterator for both name and price.
    2) on your UI action button :
    <af:commandButton actionListener="yourbean.addToCart">
    <f:attribute name="pName" value ="binding.<created name bind variable>"
    <f:attribute name="pPrice" value = "binding.<created price bind variable>"
    </af:commandButton>
    3) custom Managed Bean:
    //yourBean.java
    public void addToCart(ActionEvent e){
    // get binding here
    // use executeWitParams method to send parameter to the function "testMethod" and execute
    //AppModuleImp.java
    public void testMethod(String pName,String pPrice) {
    CardVOImpl vo = this.getCartVO1();
    CardVORowImpl r = (CardVORowImpl)vo.createRow();
    r.setAttribute("NAME", pName);
    r.setAttribute("PRICE", pPrice);
    vo.insertRow(r);
    Hope this helps...
    Let me know if not..
    Thanks
    Edited by: MavenDev on Oct 30, 2011 8:08 PM

  • Problem Updating Safari/Version incompatible with iGoogle

    I am currently running Mac OS X 10.2.8 with Safari version 1.0.3
    This Safari version is out of date and in order to use Google and other basics I have to update Safari. I downloaded Safari 3.1.1 but when I click to install it tells me that the "Bill of Materials cannot be found".
    Any tips, hints, guidance, suggestions? Completely lost as most update packets that I can download from Apple.com are for operating systems much higher than mine (10.2.8). This computer seems relatively new so I am confused as to why this operating system won't work with update software.

    Hi Paigerh and welcome to the forums!
    If you really are running 10.2.8 it must be quite an old Mac.
    Mac OS X version 10.2 “Jaguar” was the third major release of Mac OS X, Apple’s desktop and server operating system. It superseded Mac OS X v10.1 code name Puma and preceded Mac OS X v10.3 “Panther”. The operating system was initially available on 23 August 2002.
    You will not be able to update Safari unless you upgrade to at least Tiger 10.4.11, which of course involves cost.
    Message was edited by: Klaus1

  • Problems updating apps on ipad with ios8.2

    can you please help us? finding a way to update our ipads at home. we have enough internet speed however our apps were not getting updated. even if we try to click update all in the itunes. however we can update our apps on our iphones. please what should we do for us to get our apps updated. thanks and more power to apple

    Update these apps with iTunes (computer) and sync to iPad to clear the jam.

  • Repeat regions not working in Contribute

    I've got a problem with repeat regions inside templated
    pages. When in contribute, I can't seem to add a new repeat region
    by clicking on the plus (+) button, although it works fine in
    dreamweaver. It isn't a permissions issue as far as I can tell,
    since all roles have the ability to see and edit all documents, but
    I can't figure out what else could be going on here. Any
    ideas?

    I think it's just a problem with Contribute's handling of
    PHP. There was a small chunk of PHP code in a library item that had
    to be removed. I was trying to save the value of a server variable
    into a local variable, but had to end up putting the exact same
    call in an inclue file instead. I just put the include statement
    inside the library item so it showed up site-wide. The include
    statement didn't do anything screwing during 'edit mode' in
    Contribute, so that was the workaround.

  • Repeating Region Mystery

    Hello all,
    I've been working with templates for the past few weeks and I'm loving it!
    Everything has gone smoothly till now.  I'm having a very unsual problem with repeating regions and I can't seem to figure out what is causing it. Hopefully someone here can shed some light on this issue.
    Basically, I have two templates: one parent and one child template.  There are two repeating regions in total. 
    Problem: When I create a new page using the child template, the repeating regions disappear completely. Meaning, all the repeating region code surrounding an element is completely gone. In fact, my repeating regions have an editable region within it and they disappear with the repeating region! However, when I create a new page using the parent template itself, the repeating regions are there and everything is functioning as it should. 
    This is only happening with repeating regions.  All editable regions, separate from repeating regions, are there.
    I would really appreciate the help!
    Thanks!

    I had no idea that nested templates are a serious problem in Dreamweaver.
    It's not.  It's a serious problem for users who opt to use them.  Why? Because any benefit you derive from the coolness is more than offset by the disadvantages you experience down the road from their use. I am a devout user of templates and have never found a single scenario where the use of nested templates would help.
    Most of my knowledge of Dreamweaver comes from Lynda.com's videos. I'm surprised that the instructor behind those videos never mentioned any such problem about nested templates.
    Me too.  To me this says that they have never *actually* used them either. It's very disappointing.
    Is there any other way to replicate this functionality?
    Yes, in every case there is.  But first tell me how you were going to use them, please.  What specifically is it about them that you were going to leverage in your page design?
    When working with templates, I use the following scheme....
    First, I mentally separate the page layout into three sections:
    1.  Stuff that will not change for the life of the site (i.e., the basic
    structural elements)
    2.  Stuff that *could* change from time to time (e.g., navigation elements,
    burst advertisements, section-specific navigation, etc.)
    3.  Stuff that *will* change from one page to the next
    Then I create a template containing all class1 elements.  Next I create
    server-side include files containing all class 2 elements and place them on
    the template as needed.  Note - some of the class 2 elements may be
    "section-specific elements", and their placement on the template will be
    subject to the next item.  Finally, I insert editable regions to cover the
    class 3 items, INCLUDING the section-specific navigation.
    This allows me to just cookie-cut the rest of the site.  I estimate that
    even for fairly large sites, about 80% of my work goes into planning and
    creating this template file.

Maybe you are looking for

  • Error from RFC adapter

    Hi, I encountered an error while sending RFC from ECC5.0 to XI using RFC sender communication channel and TRFC.  The error in the TRFC monitor is com.sap.aii.af.rfc.afcommunication.RfcAFWEx : lookup of alternative Does anyone have an idea what might

  • Full text search in local CD-ROM app

    Hi all, I want to develop a local application deploying in CD-ROM, and I want to use about 1.000 PDF documents. I thing that it's a good idea to convert the PDFs to SWFs using the FlashPaper. My answer is how can I make a full text search using the c

  • System Preferences - Sound

    When I open the System Preferences application, and click on the "Sound" icon, the application quits. Many other parts of this application work, though some (such as "Keyboard and Mouse", and "Network") say that there is a "Preferences Error" and tha

  • Itunes video crashes my computer

    I recently purchased a video iPod (my photo iPod broke) and updated my iTunes software. Now, every time I try to open the video page in iTunes, it crashes my computer. Either the computer freezes and I have to reboot or it goes blue screen and reboot

  • SAP BPC 5. 0  VS Outlooksoft 5.0 SP 2

    What are the main differences between SAP BPC 5. 0 /5.1 VS Outlooksoft 5.0 SP 2 ? As far as i know Outlooksoft 5.0 is the newer version of Outlooksoft Everest. Since SAP Acquired Outlooksoft, they renamed to its own brand SAP Business Planning and Co