Please help me. php problem

Discussion in 'PHP' started by swiftmed, Feb 3, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Hey Guys,

    im really confused over this issue. basically if you go to http://www.4design4style.com/directory.php and click on any one of the images in the centre of the page it takes you to another page.

    You will see that the url changes to somthing like http://www.4design4style.com/boutique/4 Travel/4 Hotels/4 Oceanic Cities#809. The problem i have is the page that it goes to is all buggered up. there is no styles to it, all the colours and fonts are wrong etc, and i cannot find the page that controls to output on that page.

    As you can see in the url it goes to www.4design4style.com/boutique/.... but that boutique directory doesnt exist, so why is it going to there, and how can i find the page that controls the styles. i have looked into the code on the database page and this seems to be the line that controls the url it goes to when an image is clicked:

    while($randarray = mysql_fetch_assoc($randq))
    {
    $randomarray[] = $randarray['photo'];
    $randomlinkarray[] = 'boutique/' . $randarray['Sub1'] . '/' . $randarray['Sub2'] . '/' . $randarray['Sub3'] . '#' . $randarray['id'];
    
    }
    Code (markup):
    Can anybody please help or advise please?
     
    swiftmed, Feb 3, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2

    You have a couple of different issues here. The %20 spacers are placeholders for a space that can not be in a URL. There is an error in the script somewhere creating that problem.

    This is the yielded URL when clicking a link: 4design4style.com/boutique/4%20Design/4%20Fashion/4%20Rome#60/

    Changing it to its correct form of: 4design4style.com/boutique/4Design/Fashion/Rome#60/

    still loads a page but the center content is blank and the image is broken.

    I am guessing without seeing the entire script that it is merely reloading the center portion of the page depending on the link clicked. If you study the main index page script the hrefs should indicate what is being called.

    I am betting there is a template directory somewhere. It may be hidden under images, inc or includes.

    Changing all references to the style sheet to to an absolute path should solve the missing CSS problem. Ask if you don't know what this means.

    I realize this only tells you where to look but it is a start.
     
    Colbyt, Feb 3, 2007 IP
  3. swiftmed

    swiftmed Peon

    Messages:
    1,070
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi,

    thanks for your reply, im going to take into account all of what you have said and study it this evening. if i get a problem ill post back here for help.

    thanks again.
     
    swiftmed, Feb 3, 2007 IP
Thread Status:
Not open for further replies.