Well... I have a basic lay-out and all the data is in the database. And if you change the id number the data changes but not the lay-out.
That's why I need to add the query to the database.
http://imdb.tsdme.nl/profile.php?id=1
http://imdb.tsdme.nl/profile.php?id=2
That's my function
code:
function title_query($id){
global $title;
$title = mysql_fetch_array(mysql_query("SELECT `title` FROM `imdb_data_title` WHERE id=".$id));
echo $title['0'];
}
At the first link where it says title_query()(3), I want it to change to the title of the movie, that is stored in the database with that query
EDIT: Basicly I want to store a piece of my php code in my database to be executed later