PHP scripting help

Discussion in 'Web Design and Development' started by ghostchild, Sep 28, 2008.

  1. ghostchild macrumors 6502

    ghostchild

    Joined:
    Jun 17, 2007
    #1
    Hey guys I'm currently trying to mod this PHP Photo Album script script so that I can click my menu and have my final page show in my content div. It all works separately right now, however it can't seem to work together in separate div's on the same page. Here is my link to the page please look at my code (a bit messy) and please help me find a solution...

    Help me find a solution...

    Thanks,
    John
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    I think you forgot to upload the CSS or something with that page you linked to. Might want to check on that.
     
  3. ghostchild thread starter macrumors 6502

    ghostchild

    Joined:
    Jun 17, 2007
    #3
    I'm not worried about the css right not and the files there, the main thing is getting this to work.. :mad:
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    I believe it's a path issue. In your HTML you have:

    PHP:
    ajaxpage('asia.php''display');
    but asia.php isn't inside the current directory, it's a level up. Do this instead:

    PHP:
    ajaxpage('../asia.php''display');
    You should also use a more proper test page, one which has a HTML, HEAD, BODY tag for instance.
     
  5. ghostchild thread starter macrumors 6502

    ghostchild

    Joined:
    Jun 17, 2007
    #5
    For better visuals this is what I'm trying to do... this link here

    forget about the test page, just didnt want to show all my stuff...:(
     
  6. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
    There's a typo on the first link inside the wrapper div. You can href="onclick="

    As for the links, the paths still aren't right. When I type in the paths manually, there's just a 404 page.
     

Share This Page