I'm storing some code in the database. The code that I'm storing is a simple function call (there's a reason for this, really), that just says: makeNewURL('link.php')
In my code, I'm eval()ing the data from the database. What it's supposed to be doing is calling the function makeNewURL, but all it's doing is printing out makeNewURL('link.php').
$formtext = addslashes($row['formtext']);
eval("\$newformtext = \"$formtext\";");
//do stuff here with $newformtext
Is eval() not able to understand function calls? Or am I just having a brain fart? 😕