thesavior
01-03-2006, 02:31 AM
I am looking for something that will do the following.
I have a html document that i can do the normal template things.
<html>
<head>
<title>{:pagetitle:}</title>
</head>
...
Then i want to have a file that lists things like
pagetitle --> $result['tuturl']
What is different from other ones of these that i have found online, is that instead of replacing it with static content like
pagetitle --> THIS IS A PAGE TITLE
Im using something that goes like:
$query="SELECT * from tutorials WHERE id='$_GET[id];'";
$row=mysql_query($query) or die(mysql_error());
$result = mysql_fetch_array($row);
and so lets say i go to a page with a url like:
...viewpage.php?id=3
it opens the html file for viewpage, and parses the viewpage template which is like that of my first code above, and takes the tuturl and puts it into the title...
Might sound like any template script, except i want mine this to be dynamic depending on the id in the url and the like.
Does anyone know of one like this, or script that i can work with?
Or if not...then just plain out...how do i do this?
I have a html document that i can do the normal template things.
<html>
<head>
<title>{:pagetitle:}</title>
</head>
...
Then i want to have a file that lists things like
pagetitle --> $result['tuturl']
What is different from other ones of these that i have found online, is that instead of replacing it with static content like
pagetitle --> THIS IS A PAGE TITLE
Im using something that goes like:
$query="SELECT * from tutorials WHERE id='$_GET[id];'";
$row=mysql_query($query) or die(mysql_error());
$result = mysql_fetch_array($row);
and so lets say i go to a page with a url like:
...viewpage.php?id=3
it opens the html file for viewpage, and parses the viewpage template which is like that of my first code above, and takes the tuturl and puts it into the title...
Might sound like any template script, except i want mine this to be dynamic depending on the id in the url and the like.
Does anyone know of one like this, or script that i can work with?
Or if not...then just plain out...how do i do this?