styling hyper link.
I have a doubt.
http://haveeru.com.mv/?page=wc2006 this link look little bit complicated.I am a
web master. still i don't know how to make link like that.
if i design the website its links look like http://www.haveeru.com/page1.php
i am very eager to learn those stuff.
if anybody knows that let me know.
any help is appreciated.
thanks
kb posted this at 21:15 — 24th May 2006.
He has: 1,380 posts
Joined: Feb 2002
It involves the "strip_tags($_GET['id'])" method, which would take the information from index.php?id=whatever, and allow you to move "whatever" into the index page...basically allowing you to have a dynamic page, that loads content depending on the "id" (or whatever you want to call it) that is passed to it.
How would you implement this? Your main page is index.php, and you have some code like:
<?php
$page = strip_tags($_GET['id']);
if ($page == '') {
$page = 'index'
};
mysql_query(\"SELECT header, body, id FROM $page\");
?>
...something like that
Does that help at all?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.