I had that already working
, but my problem was that I had to store a part of the php code in the database and it wouldn't execute that part.
My version:
code:
function title_query($id){
global $title;
$title = mysql_fetch_array(mysql_query("SELECT * FROM `imdb_data_title` WHERE id=".$id));
echo "<b>Title</b>: <i>".$title['title']."</i> <b>Year</b>: <i>".$title['year']."</i><br>";
}