Hi. following code:
$a = "Hello world";
$b = "echo $a";
Now i want to execute the value of $b, like
$c = EXECUTE($b);
$c should now contain "Hello World";
how do i do this?
thx
executing variables
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
(object-oriented code)...
I want to create an sql statement like this:
$str = $newobject->strtolower($newclass) . "id";
$val = EXEC($str);
$newobject->search("id", $val);
i have a class for every table. these tables are linked.
the table of $newclass has an column that is called
"newobjectid". The id has to be added to "newobject"
this is why i need this functionality.
the "search" method build the query.
hope this helps....
I want to create an sql statement like this:
$str = $newobject->strtolower($newclass) . "id";
$val = EXEC($str);
$newobject->search("id", $val);
i have a class for every table. these tables are linked.
the table of $newclass has an column that is called
"newobjectid". The id has to be added to "newobject"
this is why i need this functionality.
the "search" method build the query.
hope this helps....