2010-05-14, 22:32:58
A PHP function never has access to the variables that are not within it unless these variables are globals or passed to the function in the form of parameters. Easiest in your case is probably using this:
Code:
function hello_world() {
global $upload; // This takes the currently existing $upload variable into the function.
echo '<tr><td>'.$upload['name'].'</td></tr>';
}
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!