Hi there,
I have a question about a function that I don't have, yet ;-)
I'm fetching my arrays from a database via mysql_fetch_array(mysql_query("$QUERY")); and send it through a function that will strip slashes on the whole array.
So far, so good. But right after that, I want to send the $result through a function, that returns $key as a named variable based on the fieldname in the database table.
So:
$row["username"]->"Peter"
shall become
$username="Peter";
How do I work that out, because so far that put me off, and I always had to do the
$uname=$row["uname"];
stuff.
And, in addition to that: What does it mean, if you reference a variable via $$ ($val -> $$val)?
Thanks in advance for any enlightenment🙂