I’m looking for a php syntax which allows, after a sql query like :
$query = "SELECT module, operation FROM webfolders";
$result = mysql_query($query);
$typeContenu = mysql_fetch_array($result);
To recover the result in a variable with the same name as the desired field.
For my example, i don’t want $typeContenu['module'] or $typeContenu['operation '] but directly $module and $operation.
I think for do this, there is a “@” to put somewhere…i don’t remember.
Do you undestand what i want ? Thanks !
Why don`t u use http://php.net/extract – Import variables into the current symbol table from an array, but try to avoid it becouse it can get confusing