i have an array of SQL query , for example
$result[0] = "mysql_db_query(\"$dbname\",$reqtype0)";
how do i use eval function to make php executes $result[0]
i have tried
$aresult = eval ("\$result[$0];");
then
while ($row = mysql_fetch_array($aresult))
{
...
}
i have also tried
eval("\$aresult = \"$result([0]\";")
but it keep saying Warning: Supplied argument is not a valid MySQL result
resource
is there something wrong with my code..
any suggestion how to execute codes in database textfield for later execution ...