Attempting to use several url parameters in one url

Problem: I can either pass along the picture ID parameter or the album ID parameter to the next page, but never both
I have a URL parameter for the picture ID, and I have another for the album ID, which determines also the directory where the pictures are stored on the server.
Only the album ID parameter:
photoalbum.php?mod=album&id_alb=<?php echo $row_rsImages['id_alb']; ?>
which generates this URL: photoalbum.php?mod=album&id_alb=6
Result: loads picture A just fine
Only the picture ID parameter:
photoalbum.php?mod=detail&id_img=<?php echo $row_rsImages['id_img']; ?>
which generates this URL: photoalbum.php?mod=detail&id_img=8
Result: loads picture B just fine
Now I want to pass both parameters:
photoalbum.php?mod=detail&id_img=<?php echo $row_rsImages['id_img']; ?>mod=album&id_alb=<?php echo $row_rsImages['id_alb']; ?>
which generates this URL: photoalbum.php?mod=detail&id_img=8mod=album&id_alb=
Shows only one picture
But when I type a number at the end of the url so that it reads;
photoalbum.php?mod=detail&id_img=8mod=album&id_alb=6
It shows both pictures
MySQL Query:
rsImages
SELECT id_img, Vlg_img, idalb_img, filename_img, filenameA_img, filenameB_img, description_img, date_img
FROM image_img
WHERE idalb_img = colname
Name: colname
Type: Text
Standard Value:  -1
Runtime Value: $_GET['id_alb']
MySQL Query:
rsAlbBgr
SELECT id_alb, title_alb, description_alb, backgr_img
FROM album_alb
WHERE album_alb.id_alb= bgrname
Name: bgrname
Type: Text
Standard Value:  -1
Runtime Value: $_GET['id_alb']
It's puzzling me for days now, can someone please help me?
MySQL - 5.0.27
MySQL client version: 4.1.20
PHP Version 5.2.3

> which generates this URL: photoalbum.php?mod=detail&id_img=8mod=album&id_alb=
You need an ampersand between each set of information in the url - in this case between img=8 and mod=album. the line above needs to be
photoalbum.php?mod=detail&id_img=8&mod=album&id_alb=

Similar Messages

  • Can anyone help me figure out how to sync my ipod with my purchased music?  I have used several computer and at one point synced my ipod with a computer that only had about half of my music.  My other computers are no longer working.  Not sure how to get

    Can anyone help me figure out how to sync my ipod with my purchased music?  I have used several computer and at one point synced my ipod with a computer that only had about half of my music.  My other computers are no longer working.  Not sure how to get my purchased music back onto my ipod?

    Hi kimcinma!
    Your previous purchases are saved on iCloud even if you bought them on another computer. If you can't find them on your current computer, you might need to unhide them. Go to iTunes preferences, and click on Store Preferences. Then click the box for "show iTunes in the Cloud purchases". Then click on OK, and everything you've ever bought from iTunes on that Apple ID will show up in your library. You will need to download them from iCloud first before you can synch them to your iPod Classic. To do this, click on the little cloud with the arrow in it next to your song, and it will download to your computer. When you have the music that you want downloaded, plug in your iPod and synch away. Hope this helps!
    Sandygirl

  • Using several data connections in one SSIS data source?

    I am loading data from several SQL Server 2012 databases into a datamart. Currently, I am simply using sql sources and destinations for that. However, some of the queries require JOINs between the source databases. Therefore I currently refer to the databases
    within the command text of the sql source, e.g.
        SELECT t1.Field, t2.Field
        FROM [server1].[db1].[dbo].[table1] t1
        JOIN [server1].[db2].[dbo].[table1] t2 ON t1.Table1Id = t2.RemoteTable1Id;
    This is flawed, since all the sql commands have to be changed if the database or server names change. It would be far better to refer to connections which can be changed on package level and my question is how to get that done.
    One way I can think of to get that done is to use several sql source queries and join the data with SSIS join operations. For that all current data flows need to be reworked and I am unsure about the performance when joining large databases compared to the
    performance of a single t-sql query.
    The other approach would be some dynamic sql stuff which I want to avoid whenever possible. However, if it was possible to use a parameter to insert server/database into the sql command somehow, then that could be an option.

    Whatever you're doing now is a bad practice inside SSIS. You should be using data flow tasks for this if data come from different sources and use connection managers pointing to each of them. You add these connection properties as config items which will
    enable you to change them from outside package based on your environment
    If performance is your concern you can go for staging approach where you bring deltas(changes) alone on daily basis and then use it in the comparisons with destination tables using MERGE or T-SQL for set based processing. You need to have audit columns in
    your tables for this though.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Using several global structures in one query?

    Hello Together,
    I want to use several global structures in a query and group them for instance in the rows. I have tried it out, and it does not seem to be possible.
    Any ideas- can I overgo this problem somehow?
    Thanks,
    Elisabeth

    Hi Elisabeth,
    This should help:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a5632e09411d2acb90000e829fbfe/content.htm

  • Stop google results coming up after attempts to use the URL bar!!!

    I just installed the latest firefox and am angry. I used to be able to type things into the URL bar and firefox would direct me to the relevant website, no questions asked. I could type, for example, "BBC world news" into the URL bar, and after hitting enter, I'd be at the BBC world news website. Now, typing "bbc world news" in the URL bar gives me GOOGLE RESULTS! Why??? I didn't search Google. What I loved about Firefox was that it could send you to the websites you wanted to go and all you needed to to was type in keywords.... I can't stand going to a search result page for NO REASON. How do I make this work properly, like it used to?

    That's interesting I'm almost positive the first answer was previously marked as "Solved" before I wrote the second. Must be new system -- been a lot of things that seem strange. But I guess it also means the owner liked the second answer better, hope it helped the second person as well It is usually impossible for me to determine why something is marked "not helpful" or if that person could be helped as well.

  • Would the CCA be able to use several CPUs for executing one mapping?

    I've data sources in Adabas, and now I want to run a stress test. When I gathered statistics of the processes in all of components:
    - In Host (Adabas + Attunity),
    - In HP (OWB - oracle 11gR2 + Java process (CCA))
    The process in Host and in the database Oracle is very light, but the process Java not, I think that it's the bottleneck
    The process Java used only one CPU, although the server had seven CPUs, Is possible use more CPU's?
    Cheers
    Marisol

    Hi Marisol
    Which code templates are you using?
    Some code templates do very little apart from use the database (which can run parallel DML etc) ... others that are more process intensive such as SQL to SQL (which is more like a generic java loop, not great for large data movement).
    How are you using Attunity in this scenario? Are you using the Attunity Adabas ODBC driver? If so, did you try and use the database Gateways?
    Regarding performance if additional mappings were invoked at the same time these can leverage other processors in parallel via the CCA.
    Cheers
    David

  • How to pass two parameters in one url?

    the tutorial teaches me to use
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}
    to pass one parameter.
    How can i pass two parameters in one url?
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}&personName=#{currentRow.value['PERSON.PERSONNAME']}
    is not right.

    The '&' character needs to be escaped, lest it be interpreted by the application server as a separator character in the HTTP query string. Instead of '&', try '%26'.
    // Gregory

  • Send portal screen parameters to one absolute url in a different domain

    Hi Experts,
    We have a requirement wherein we have to send some screen parameters of the portal application to one url which is in a different domain.
    We are currently using Iframe UI element and binding the source property of the UI element to a string attribute wherein we have set the url and the parameters.
    The portal application is a webdynpro java application. The only requirement is to send the screen parameters to one particular url and nothing else. We do not want to create any html files and moreover we also do not want to make Iframe ui element visible in our webdynpro application.
    Can you please suggest how can I acheive this?
    Thanks & Regards,
    Anurag

    you can add the portal parameters to the target application URL
    target app : http://some.com/application.jsp&param1=myvalue&param2=value
    read URL parameters in Dynpro:
    WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param1");
    Lemme know your requirement passing to URL or getting portal params
    Regards,
    Nikhil

  • When initiating an e mail to someone with several addresses used in the past the one I use most often does not come up in the first position.  How can I get these multiple e mails prioritized?

    When initiating an e mail to someone with several addresses used in the past the one I use most often does not come up in the first position.  How can I get these multiple e mails prioritized?

    We are talking about the Mail app, right? In the Mail menubar, click on Window and then Previous Recipients:
    That eliminates the previous recipients. If you are talking about the suggestions because there are 10 people with the name 'Steve' in your Contacts, then I do not know how to eliminate those unless you change the name slightly or wait until you type the last name or some other differentiator.

  • HT201250 Can I include external drives to be backed up using Time Machine.  Not only do I want to back up my IMac, but I have several extenal drives for one iPhoto, one iTunes and one for other files & documents.

    Can I include external drives to be backed up using Time Machine?  Not only do I want to back up my IMac, but I have several extenal drives for one iPhoto, one iTunes and one for other files & documents.  How do I know if they are included in the backup process?

    Yes, if they are not exclude then TM backs them up.
    Allan

  • How to use Go URL to Navigate from one report to another

    I have used Actionlink option to navigate from one report to another, It is nopt working on the dashboard because i used presentation variables in my first report and its throwing me an error below, I have to pass on id from one summary report to detail report, I have created Go URL, Do i need to use that URL in my summary report column formula ?
    Need some info ~ Thanks ~Srix
    An invalid object was accessed during evaluation.
    Error Details
    Error Codes: QBB4RZQS:SDKE4UTF
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Expression: report.variables['TimePeriod']

    Hi ,
    Please refer the below threads.
    How to Navigate from one report to another report based on column values
    Navigating from one report to another report
    Re: Navigate from Report 1 to Report 2 using Go URL
    Award points it is useful.
    Thanks
    satya

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

  • Question: I think I made mistakes using several different id apple. How can I cancel all of them except the one I would like to maintain ?

    Question: I think I made mistakes using several different id apple. How can I cancel all of them except the one I would like to maintain ?

    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • My iPhone 4 won't connect to our WiFi at home, but will at other WiFi spots.  However, my parent's iPhones work and connect just fine at home using WiFi.  I have called and talked to several people and no one seems to be able to help me.

    my iPhone 4 won't connect to our WiFi at home, but will at other WiFi spots.  However, my parent's iPhones work and connect just fine at home using WiFi.  I have called and talked to several people and no one seems to be able to help me.

    The two things to try first are renewing your network lease, forgetting the network and if that doesn't work to reset all networks. You might have tried one of these but I'll repeat the steps just to make sure.
    Settings > Wi-Fi > tap the blue arrow to the right of your network name > Renew Lease
    If that doesn't work then
    Settings > Wi-Fi > tap the blue arrow to the right of your network name > Forget this Network
    If that doesn't work
    Settings > General > Networks > Reset All Networks > then reset your iPhone by
    Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the device restart.
    I hope one of these will help.

  • Hi i updated my iphone but it says that This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked. how can i unlock this one?

    hi i updated my iphone but it says that This iPhone is not currently setup to work with carrier you're attempting to use. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked. how can i unlock this one?

    Your iPhone was hacked or jailbroken before and through the update it locks back to the original carrier. Only the original carrier can unlock the iPhone. You have to contact them and find out what the procedure you needs to follow.

Maybe you are looking for

  • How do I get an itunes u account for my organization

    Can someone ANYONE please tell me how I get started with this? I am part of a public education network in Western New York, called Erie 1 Boces and we would like to set up an iTunes U account so we can use it for our professional development offering

  • Cancel Billing Document

    Hi All,   What is the use of release to accounting in cacelled invoice? Why in cancel invoice document release to accounting is there. I have gone to VF02 than give cancel billing document number. Here release to accounting is thr. Rewrad points for

  • Method not found: 'Void Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration.set_DataCacheServiceAccountType('...

    After install SharePoint 2013 SP 1, I have a broken list Workflows. The logs contants the following error: 05/13/2014 14:49:03.86  w3wp.exe (0x2FB4)                               0x0774  SharePoint Foundation           DistributedCache              

  • I'm having some Audio Issues involving my headphone jack (air and pro)?

    Ok, so, this is pretty weird. I have had two macbooks thus far (a 2011 macbook pro and a mid 2013 macbook air) I replaced my pro in 2013 due to a separate issue. Anyway, I have been consistently having an issue where any type of headphones I put into

  • Using NDS with central database

    Hi All, Can anybody help me with this? My local system has: 1. NDS 2. J2E Engine (WebAS) and Data Source pointing to a CENTRAL Oracle DB. Is this possible? Can I have test my application on my local J2E engine with my data sources pointing to a CENTR