Does anyone know how to use the eval function? I 'd like to output a variable which is stored in a mySQL database, but I keep getting an annoying error.
Quote:
|
Parse error: syntax error, unexpected T_STRING in /home/.eurypides/npsale/vezor.net/certificate.php(39) : eval()'d code on line 1
|
I guessed there was an error in the entry in the database so I removed the text from the variable; that didn't help.
PHP Code:
$certext = stripslashes($row['certext']);
eval("$certext");