Jumping in and out of PHP

Sorry this is a bit long winded.
I have a single MySQL table holding Volunteer's information and their assigned activity and am able to display a list of Volunteer's names and link from the Volunteer's name to an information page which displays all the Volunteer's info using an index called "volunteernumber" and passed as a URL parameter. This is working fine. I also have a web page that shows a list of Volunteers names categorized by their assigned activity - and this works fine.
It will help my users to be able to combine the functionality so they can use the categorized list of Volunteer names and click on the volunteer's name to go to a page displaying the volunteer's information. Sorry I can't give you a link to the page as it contain personal contact info. The problem I'm having is that the parameter "volunteernumber" is not being added to the url generated by the <a href=....... code.
Below is the code that displays the categorized list of Volunteers names without a link - this code works correctly.
<?php
// initialize a variable to store the previous activity
   $previous = ' ';
   do { 
         if ($row_rsVolunteersFriday['assignedactivity'] != $previous)
                 echo "<b>".$row_rsVolunteersFriday['assignedactivity']."</b><br>"; 
                echo $row_rsVolunteersFriday['firstname']." "; 
                echo $row_rsVolunteersFriday['lastname']."<br>";
// store the current name in the $previous variable
               $previous = $row_rsVolunteersFriday['assignedactivity'];
           } else
              { echo $row_rsVolunteersFriday['firstname']." "; 
                echo $row_rsVolunteersFriday['lastname']."<br>";
?>
  <?php } while ($row_rsVolunteersFriday = mysql_fetch_assoc($rsVolunteersFriday)); ?>
Here is the code that fails to add volunteernumber to the URL parameter, it generates a link containing www.hollisterairshow.com/admin/"showvolunteer.php?volunteernumber=   NOTE it generates a spurious quote in the middle of the URL and does not append the parameter 'volunteernumber'.
Note for test purposes I only altered the code that displays the hyperlink when the categorized activity has not changed i.e. the code that occurs after the "else". I have bolded this code below
<?php
// initialize a variable to store the previous activity
   $previous = ' ';
   do { 
         if ($row_rsVolunteersFriday['assignedactivity'] != $previous)
            { echo "<b>".$row_rsVolunteersFriday['assignedactivity']."</b><br>"; 
             echo $row_rsVolunteersFriday['firstname']." "; 
             echo $row_rsVolunteersFriday['lastname']."<br>";
// store the current name in the $previous variable
            $previous = $row_rsVolunteersFriday['assignedactivity'];
            } else
?>
                 <a href  = ”showvolunteer.php?volunteernumber=
                 <?php echo $row_rsVolunteersFriday['volunteernumber']; ?>&tab=3" title="Show Volunteer Information">
                 <?php echo $row_rsVolunteersFriday['firstname']." ".$row_rsVolunteersFriday['lastname']; ?></a><br />
<?php
?>
<?php } while ($row_rsVolunteersFriday = mysql_fetch_assoc($rsVolunteersFriday));
?>
I'm using DW CS4 with PHP and MySQL.
Thanks for any assistance, I've been staring at this for hours and can't see what I did wrong.
Tony

Never mind !! I found it and fixed it.
In case anyone else has this problem it turned out that when I copy/pasted some code I stupidly did some editing
in MS Word then copy/pasted from Word to DW Code view. This inserted an extraneous
new line and converted the leading quote into something that looked like a quote and wasn't.....sigh

Similar Messages

  • HT201394 ios 8.0.2 causes my iphone 5 to jump in and out of data/cell service. Has anyone else experienced this?

    I have an Iphone 5 16 gig on the Sprint network and since i've updated my ios, it now jumps in and out of cellular service. I was told that you can revert back to 8.0.0 but i can not find a way of doing that. Has anyone else experienced this problem and found a fix?

    Hello, rscottval
    Thank you for visiting Apple Support Communities.
    I would close all applications in multitasking and power cycling the device.  Once this is done test the results.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    If you are still having trouble with the text appearing as you type after following those steps, you may want to try turning off Documents & Data under your iCloud settings.  On your iOS device’s Home screen, go to Settings > iCloud, then tap to turn off Documents and Data.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Cheers,
    Jason H.

  • Windows Jumping In and Out Intermittently

    Every few days my open windows begin doing an exposé dance swinging left and doing a dosy doe (sic). Whatever I do during these episodes doesn't stop it including rebooting. After a while everything calms down and goes away for a while.
    I turned off exposé and all the tracking options. It really doesn't feel like screen issue and the keyboard doesn't feel like its shorting out. It creates lots of anxiety but I've never lost work yet.
    powerbook g4 aluminum 1gig   Mac OS X (10.4.7)  

    I've never heard of this. Sounds like your expose' keys are getting stuck, or you have a hot corner turned on and your mouse is floating around in that corner.

  • Why is my iPhone so slow and signals are jumping in and out

    My iphone is failing my with the signals after i updated the software to ios7

    Any change after a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release?

  • IPad mini is flicking in and out of apps on its own. What can I do

    My iPad mini is jumping in and out of apps on its own.  Or when I'm in one and try to close it goes to home screen and app is jiggling then it reopens not closing. Then will start just opening programs at will

    It's usually just a problem when the app crashes and then you tap it again and then it closes and opens again, it will usually stop after a few times. If this is happening while you are in an app and it crashes and does that, it's no problem, just wait a couple of seconds and play the app again, nothing will happen. It's no biggie, don't even sweat it, it rarely happens. Besides, it's happened to me too, it does no damage to your IPad mini.

  • Submitting form with 'jump menu' and PHP?

    I have a form that can reveal one of two question sets,
    depending on the
    setting of a drop-down list, e.g.,
    <select>
    <option>Set 1</option>
    <option>Set 2</option>
    </select>
    Up to this stage in the development of this page, I have
    solved this
    requirement by using an onchange event in the <select>
    tag to submit the
    form to itself. The PHP code in the head of the page
    evaluates the set
    selected, and then writes the page containing the 'selected'
    fields (either
    set1 or set2).
    But now, I also need to submit this form's data to the
    processing page! So,
    there are two competing functions here -
    1. Deciding which field set to display
    2. Processing the filled in fields by submitting the form to
    a second
    process page
    How can I get these two together on the same form?
    Or should I just use two separate form pages, and a
    javascript jump menu?
    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
    ==================

    Never mind, I figured it out. :-)
    mark
    > I have a page that contains a jump menu and an iframe. I
    use the jump menu
    > to load different pages into the iframe. Works fine in
    IE but will not work
    > in Firefox. Here's the code:
    >
    > <form name="form1">
    > <select name="odm"
    onChange="MM_jumpMenu('odmframe',this,0)">
    > <option value="/solutions/odm/blank.html">Choose a
    Product</option>
    > <option
    value="/solutions/odm/vpn.html">VPN/Firewall
    > appliance</option>
    > <option value="/solutions/odm/2100e.html">2100E
    Enterprise Class
    > Server</option>
    > <option value="/solutions/odm/4300e.html">4300E
    Enterprise Class
    > Server</option>
    > <option
    value="/solutions/odm/4300edp.html">4300EDP Enterprise Class
    > Server</option>
    > <option
    value="/solutions/odm/sc4100,html">SC4100</option>
    > <option
    value="/solutions/odm/2120.html">SA2120</option>
    > <option
    value="/solutions/odm/na1400.html">NA-1400</option>
    > <option
    value="/solutions/odm/sc6000.html">SC6000</option>
    > <option
    value="/solutions/odm/ecobay.html">Ecobay</option>
    > </select>
    > </form>
    > <iframe src="/solutions/odm/blank.html" id="odmframe"
    frameborder="0"
    > style="width:650px; height:500px;"></iframe>
    >
    > What do I need to do to get this to work in Firefox?
    > Thanks
    > mark
    >

  • Multiple examples of photos jumping to other Events, disappearing completely, and jumping to iPad out of iPhoto

         I had almost 1000 rendom photos jump into iPad and OUT OF iPhoto six months ago.  After numerous one-to-one helpers, one person was able to extricate them into a file in "Pictures" on my MacBook Pro.  (First, I had to go through every photo and match with iPhoto to see which ones were missing!  Hours of work.)  They still remain in a file in Pictures, but the event in iPhoto that I made for them worked for awhile but now is transformed into a file of a different event with its pictures repeated about a dozen times. 
         I tried to create an album today out of a specific event and several of the pictures disappeared in the process, both in the Event and in the Album.  A bit later, the Album is empty and the Event contains the reduced number along with some other pictures from an unrelated Event.  I also have a couple of folders that show only a grey image of a palm tree as the cover picture and it says there are zero pictures, but in fact there are pictures inside.  Choosing a different Key Photo doesnt' work.  Merging some with another Event did not work and the pictures disappeared. 
         In the meantime, the number of photos that is shown has changed and it tells me that there are 16 photos hidden - where??
         I do have a very large number of photos (28,000) ... too many?  My machine is four years old with expanded memory and storage.
         Any ideas? 

    1. 
    I know - it's impossible but it happened.  Of probably 5or 6 different people at Apple, including Genius bar folks, no one had an answer 
    2.
    It's 9.4.3 iPhoto 11 
    3.
    I moved the 33 pictures in my EVENT into the new ALBUM.  From the ALBUM I proceeded to select the ones I wanted and "remove from album" the ones I didn't want.  (This is a process I have followed many times to get the pictures I wanted for albums on my website.  I upload from the album.)  This process was not complete when I discovered the problem of lost pictures that I can find nowhere.  Eleven of them are gone from the original EVENT (replaced by pictures from a completely unrelated EVENT) and the ALBUM is now empty.
    4.
    Yes, EVENTS is what I meant.  This problem is not understandable and is a puzzle for the person I most recently talked to at Apple store.  She suggested that I copy the pictures and then make another EVENT.  As an alternative, I didn't copy them first, but then I "merged" them with the EVENT where they belonged - it didn't work and they were lost. 
    5. 
    I have checked this option - however I see no change.  Where should I be looking for the photos???  Maybe I don't know where to look. 
    6. 
    Well, at least that's good news!  Thank you! 
    Thank you much for taking the time to consider my questions.  I have spent a great deal of time and energy with my photos, learning at the Apple store employees over 4 years, primarily with 1 to 1 seesion about all the details, and am very familiar with iPhoto.  But with the latest problems, I am baffled.  I thank anyone who can help

  • I tried to download images from a jump drive and now the jump drive seems blank. How can I recover the images? Is there a software program out there to do this reliably?

    I took photographs with my Lumix camera (JPG) and put the sd chip into a jump drive and put them into my usb port to load. The images never loaded and now the sd chip has no images when I put it back into the camera. What can I do to restore the images? Is there Mac compatible software out ther to restore them? I am running a Macbook Pro OS X v 10.7.5. Thanks for your help.

    I'm not sure I can help you with this situation. Odds are you probably can't recover the images if they aren't hidden in the card, but this just seems to be a fluke. I've had flash drives that be plugged in only to find out that was their iminant death.

  • My SD video keeps jumping between the upper and lower frames. So the video starts frame blending and blurring in and out.

    My SD video keeps jumping between the upper and lower frames.  So the video starts frame blending and blurring in and out.  The sequence settings are set to
    Editing Mode: DV NTSC 29.97 frames/second. 
    Pixel Aspect Ration: D1/DV NTSC (0.9091)
    Fileds: Lower Field First
    Display Format: 30fps Non-Drop-Frame Timecode
    720 x480

    What is the source of your video, and exactly what is inside your video?
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • TS3274 MY MINI IPAD keep jumping from screen to screen and moving in and out

    mini pad keep jumping and moving in and out.

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • Finder icon jumps up and down and I am not able to access finder. Anyone out there with a solution? help appreciated. /ivan

    Finder icon jumps up and down and I can not access finder software. Any solutions out there?

    The next time you have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • IPhone 5 voice call quality fade in and out. Noise Cancellation interference?

    I've been having this huge problem with the iPhone5. The evidence i've collected seems to indicate this is a problem with all iPhone5's.
    On calls in certain places both indoors and outdoors, the callers voices over the iPhone5 fade in and out. Their voices occasionally completely fade completely away, and only come back momentarily. The low volume for 50% of the time forces me to raise the volume, but raising the volume does not help because when the voice does come back, the volume is too loud for my ears.
    I went back to the Apple store and they are not able to help me. They suggested a clean restore, which I did. They offered to replace the phone, which I did, but it is the same problem.
    - iPhone 5 vs. iPhone 4S, the fading does not occur. I make the call to the same voice mail system I have, and the sounds from the other side are consistently the same volume for the 4S, but fades in and out for the 5.
    - I connected up a 8mm jack between my iPhone 5 and my mac in an attempt to record this problem. In that instance, the sounds from the voice mail DO NOT fade in and out. I did find out that the dynamic range on the iPhone 5 is MUCH greater than that of the iPhone 4S, for some strange reason.
    - When I hold the phone up to my ear, the fading in and out does occur, but it is less noticeable. But it's still there.
    - When I leave my work area the problem goes away. However, because the iPhone 4S on the same AT&T service does not have this problem, this leads me to believe it's NOT a lack of transmission power from the AT&T cell tower. Rather, it is a reception issue at the iPhone5 side.
    - I turned off LTE, data and then made the calls. Same issue.
    I use this phone to make 60 minute calls for conference calls frequently. I cannot use it. Please advise. I am seriously considering returning this phone. Except i've sold my old iPhone 4 already. I'm in a bad place. Please help.
    Here's another post of a fellow with the same exact problem.
    http://forums.macrumors.com/showthread.php?t=1456404
    Apple, please look into this. I believe this is a problem with the noise cancellation software.

    I've got an update on this problem with fading volume. I've isolated it to the set volume on the phone for voice calls when using headphones. When the headphone volume is set between 1 and 6 (out of 16 squares) the callers volume will consistently fade in and out. The fading which is normal to zero volume at 2-5 Hz is serious enough that normal conversation is impossible.  When the volume is raised above 6/16 then the callers voice stabilize and I can hear all their words again. Unfortunately, at 6/16 volume their voices are too loud for the headphones.
    Furthermore, when headphones are plugged in, and I initial a call after the iphone5 was idle for several minutes, the first dial tone has preceded by a very loud pop an the tone, as though there was too much pressure (charge) that was dissipated all at once.
    Other details:
    - I used 3 different earphones, iPhone 4 headphones, altec earphones, an the new iPhone 5 earbuds. Same.
    - I turned on and off lte, data, Bluetooth, wifi. Problem persists unaffected.
    - when switching to iPhones earpiece and mic, the fading is gone.
    - I have 3 out of 5 bars where I teste this, in the city outside and on hwy 5 in central California. Same symptoms in all places I've tested.
    - I have exchanged my phone at the apple store. Same issue with both iPhones an I suspect all ipjone5s.
    - the ipjone4s does NOT have this problem when the volume is set lower. I can tell that the iPhone 5 must have a new audio filter to make the sounds have larger dynamic range. I liked the 4s better, because it is easier on the ears!

  • I am no musician, but have owned an iMac now for around four years. During that time I have had Garageband installed. I have dipped in and out very occasionally as I would like nothing more than to be able to get my head around it just for my own amusemen

    I am no musician, but have owned an iMac now for around four years. During that time I have had Garageband installed. I have dipped in and out very occasionally as I would like nothing more than to be able to get my head around it just for my own amusement really. I would at least like to be able to record my electric guitar with loops and tracks etc, just try to be a bit creative and see what comes out. The problem that I have is that perhaps its me, but every time I try to get to grips with this software, I just can't seem to get my head around it, even to begin to do something. I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that. I have also recently purchased a Rocksmith RealTone Cable to connect my guitar. I can sometimes get a sound come out, but nothing to brilliant. And every time I try to set something up, it just doesn't seem to work out. I end up hitting buttons and controls in the simple hope that I may hit the correct control in order to get some sort of result. But I'm kind of fumbling in the dark with this. I have trawled the Internet just trying to find either a good manual or video tutorials for absolute beginners, but there just simply doesn't seem to be anything of that nature out there and what there is appears always to be very sketchy and not particularly detailed in explaining anything properly, and so I always find myself seemingly jumping in with both feet and just struggling to try and find a foothold with this on how to really begin. It is so frustrating as I can see the fantastic potential of this software, but just can't understand how to use it properly. If there is anyone out there who may be able to offer me some advice with this, I would be most grateful indeed... Many Thanks.

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • How do I run a script so that the user does not have to click into and out of a read-only calculated numeric field?

    Hi all
    I have a read-only calculated field, and I want to build actions on it, dependent on what the answer to the calculated field is.
    I have used action builder, and it works, but only if the form filler clicks in and out ("exits") the field, which they didn't have to enter in the first place, because it populates as a result of a previous script.
    To be more precise, The questions asked before this field are:
    Date of submission (submitdate):
    Date of event (eventdate):
    Calculation occurs (days between event and submission), and answer is populated in a field called 'daysbetween'
    Now I have a set of conditions:
    If the daysbetween is < or = 14, then I want a message to come up saying ineligible to apply
    If the daysbetween is >14 and < or = 28, then I want a message to come up saying a fast track fee will be applied, and I want the fast track fee box to be populated, and I want the fast track fee box to appear.
    I used the action builder to get all of this to work, except that it only works if the user then clicks in and out of  the 'daysbetween' field, which they shouldn't have to, because it's already calculated for them
    I feel like I have to put this script in an earlier field...but I don't know where - action builder won't let me do it in the 'eventdate' field
    Thanks in advance

    Put a shift register on the border of your loop. Have a case statement that contains the "Get time" function in one case of the case statement. Make that case = 3 and wire the loop iteration to the case selector. Have the time value loaded onto the shift register in the "2" case (interations count from zero), have the shift register passed through on all others ("Default"). Then subtract this time from current to get elapsed time. You probably want to put the subtraction/comparison in a "sub-case" in the "default" that only is valid for interations > 3 or you will get some really ugly "times" until the shift register is loaded, or you could initialize it from outside the loop with the time, but this will cause it to show elapsed times from the beginning that suddenly jump back to a low number after iteration 2.
    P.M.
    @ Corning? Which one? I was doing LabVIEW at Corning back in '96
    Message Edited by LV_Pro on 09-23-2005 10:07 AM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    elapsed time.vi ‏24 KB

  • The bookmarks sidebar keeps popping in and out and I can't get it to stop. I have gone to "View" and tried to hide it but no luck. Any suggestions?

    The bookmarks sidebar keeps popping in and out. This shifts the screen making it hard to read or write anything. I have gone to "View" but am unable to stop it. The firefox questions don't address this issue.

    Did you check if there were extensions installed in that new profile?<br />
    Some programs install extensions globally and appear automatically in a new profile.
    Do a clean (re-)install:
    * Download a fresh Firefox copy and save the file to the desktop.
    * http://www.mozilla.com/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Receiving calls when playing games

    When I play games on my droid razr maxx and someone calls me, they get a message that I am playing a game. Is there a setting to change? I really don't need anyone to know what I am doing on my phone when they call me.

  • Mozilla was slow and i have reset it! Now, all my bookmarks are gone and when I try to recover it, it says not possible to process the file! WHAT NOW?

    Today my Mozilla was slow and as the solution i was offered below is reset to its default settings and Mozilla would like to keep all the old data! Of course, that I did that and for a minute an unpleasant surprise! No bookmarks, no history nor can a

  • Oracle 9i and Crystal report 9

    Can somebody help me in this. Both the database using the same version of oracle (That is 9.2. Created package for referential cursor,Created global temporary table and created SP using the ref cursor and global temporary table in both database. Usin

  • Error creating web service reference

    I am getting an error below when creating a web service reference from apex 4.2. Any idea on how to resolve it. •The WSDL document could not be understood by the rendering engine. Click Create Web Service Reference Manually to continue creating a ref

  • Bind variables Where X in (:B)

    Hi Is there a way to use bind variables in a where in clause (not where =) Here's my query: select * from events where BE_ID in (:BE_IDS) and BE_TIME between to_date(:StartDate, 'dd/MM/yyyy HH24:MI:SS') and to_date(:EndDate, 'dd/MM/yyyy HH24:MI:SS')