dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: No f$#$%& idea with this PHP

  1. #1
    Join Date
    Mar 2003
    Posts
    18

    Unhappy No f$#$%& idea with this PHP

    [COLOR=blue] I have get lost in some point and I do not know what's wrong now:
    I have developed a site that search a MySQL database by PHP, if you access the following adress
    http://www.inmobiliariapantoja.com/main.html
    you will find a page that contains a search engine on the top. If you make a search without any criteria (just pressing over the magnifier lens), it should gives you back all the items inside the database (No criteria to choose = all given)
    It will open a new page "resultados.html" with 115 results ordered in groups of 10, there is of course a link that allows you to go to the next 10 results.
    THIS LINK DOESN'T WORK
    But if in this new page "resultados.html" you repeat the same query (Just pressing again the magnifier) it will give you the same result and also the possibilitie to browse between them.
    Why it happens if they aparently equal??

    The codes:

    For main:
    The code of the first page with the search engine on the top

    For buscador:
    This site is embeded in an iframe inside the page "resultados.html" the one that show the results
    Last edited by kindra; 06-09-2003 at 06:19 AM.

  2. #2
    Join Date
    Feb 2003
    Location
    Derby, UK
    Posts
    456
    If you look at the two urls of the pages (right click - properties in IE). The one which works is

    http://www.inmobiliariapantoja.com/r...5=-1?envio6=-1

    The one that fails is

    http://www.inmobiliariapantoja.com/r...5=-1?envio6=-1

    Firstly, these are actually BOTH wrong. You need to change your javascript to use & instead of ? to add the extra parameters onto the url as there should only be one ? in a url.

    Assuming that does not fix it anyway, the likely reason that the second one works is that a parameter called 'varid' is being passed in this one and not in the first, so either add this parameter to the first page (where the javascript url gets built) or change your code to handle it not being there.

    HTH,

    Dai

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles