Can I do this? Like uhh... off the top of my head:
function show$WordIn$Name() {
$query = "SELECT $Word FROM $Name";
$result = mysql_query($query);
if($row = mysql_fetch_array($result)) {
$newWord = $row["$word"];
echo " $newWord";
}
}
What I want to do is so you can create functions on the fly... so if I wanted to show the entry for the row "Title" in the table name "Movies", I could just do this whenver I wanted:
showTitleInMovies();
Then, it would query for "Title" from the table "Movies" and echo whatever "Title" was... I don't think it's too hard to catch what I'm saying but would this work?