PDA

View Full Version : PHP scripting help




ghostchild
Sep 28, 2008, 11:19 AM
Hey guys I'm currently trying to mod this PHP Photo Album script (http://"http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm") 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... (http://74.52.120.66/~jzhang/Test%20crap/menu.php)

Thanks,
John



angelwatt
Sep 28, 2008, 11:33 AM
I think you forgot to upload the CSS or something with that page you linked to. Might want to check on that.

ghostchild
Sep 28, 2008, 12:21 PM
I'm not worried about the css right not and the files there, the main thing is getting this to work.. :mad:

angelwatt
Sep 28, 2008, 01:28 PM
I believe it's a path issue. In your HTML you have:

ajaxpage('asia.php', 'display');

but asia.php isn't inside the current directory, it's a level up. Do this instead:

ajaxpage('../asia.php', 'display');

You should also use a more proper test page, one which has a HTML, HEAD, BODY tag for instance.

ghostchild
Sep 28, 2008, 02:06 PM
For better visuals this is what I'm trying to do... this link here (http://74.52.120.66/~jzhang/)

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

angelwatt
Sep 28, 2008, 02:26 PM
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.