Well, it took me more time than i expected but finally i got the solution, the way i got it is with the help of the php eval() function. What this function do is to evaluate the string given as a parameter as it is PHP code so you can execute it, i think it is very similar to the javascript eval() function.What I want is here is one column: 5+5 and I simply:
echo($row['Column']);
and that displayes 10 not 5+5. So the echo is:
10
I don't really know how else to say it. Im sorry if I am still a little confusing.
Thanks,
Sparkx
So please try the following code and tell us if it is what you want:
<?php
eval("$"."variable"."=".$row['Column'].";");
echo "\$variable is = $variable";
//echo "<script>var var1=eval('$variable'); alert(var1);</script>";
?>The last line -in case you need it- shows the use of the Javascript eval() function, simply uncomment this line to see it in action.Best regards,




