PDA

View Full Version : PHP Noob here.



tekni
27-11-2006, 07:31 PM
Ok, so i've got the links up to the main div with help from Rico and Dan.

But, the usersystem links need to be linked up to the main div aswell.

How would I go about doing this?

www.xvisor.connect-hosting.com

btw.

joert
27-11-2006, 07:31 PM
*Removed* .n...o.....o.....b...

Edited by -legoman- (Super Moderator) Please do not avoid the filter.

tekni
27-11-2006, 07:33 PM
That's an excellent response.

I'll use that in my nav.php - thanks alot brother....

noob.

joert
27-11-2006, 07:33 PM
np sisterrrrrrrrrr

[N]
27-11-2006, 09:06 PM
Nice template, i think you could add one or 2 more things to it to make it look better, but overall it really good

tekni
27-11-2006, 09:11 PM
Nice template, i think you could add one or 2 more things to it to make it look better, but overall it really good
What's that gotta do with php? lol.

Heinous
28-11-2006, 03:04 AM
In your includes, you should only have body stuff, if you have stuff from the head of a HTML document it means you have <head></head>'s all through your body. Not good practice.

This is a simple nav like you have it. Just place this where the content is to go:


<?php
$p = strtolower($_GET['p']);
if (!empty($p))
{
if (file_exists("$p.php"))
{
include("$p.php");
}
else
{
echo "Link is wrong darling. (File <strong>$p.php</strong> doesn't seem to exist in this directory..)";
}
}

else
{
echo "Ta-dah! Welcome to the brand new admin panel!"; // Could be replaced with an include, etc.
}
?>

[N]
28-11-2006, 05:32 PM
What's that gotta do with php? lol.

lool soz 2 be honest i didn't even read it i just saw a link and pressed it and saw a template. :D

Want to hide these adverts? Register an account for free!