Help - Search - Members - Calendar
Full Version: [resolved] path to journal.php
Codegrrl.com Forums > Script Help > Tutorial Help
retrowings
I'm having another issue now sad.gif

Basicly, I have my index.php and and journal.php (which I've named single.php) in a directory called /blog. I've saved the new.php (to write a new blog) and update.php in /blog/admin, in order to password protect them.

Now I'm having trouble with paths.

When I try and update a blog using the update.php file, it tries to go to blog/admin/single.php?id=1 instead of blog/single.php?id=1.

How can I stop it doing this?
Amelie
Change this part:

CODE
    header("Location: journal.php?id=" . $id);


To

CODE
    header("Location: ../single.php?id=" . $id);
retrowings
QUOTE(Amelie @ Mar 19 2007, 10:17 PM) *

Change this part:

CODE
    header("Location: journal.php?id=" . $id);


To

CODE
    header("Location: ../single.php?id=" . $id);




edit// it's fixed! thank you smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.