Fatal error: Cannot access empty property in /var/www/html//regForm_process.php on line 9
This is te code:
$i = 1;
foreach($_GET as $name->$value)
{
echo 'GET '.$i.': '.$name.' and VALUE = '.$value.'
';
$i+=1;
}
Basically i wanted to get all the variables,a nd assign them as a var to be fed to a mysql insert query.
But the code above is jusr P0C. When called/runned, get this error"
Fatal error: Cannot access empty property in /var/www/html/regForm_process.php on line 9
The fix? easy. change the ' -> ' to become ' => ' As easy as that -______-"
Hope this helps someone.
/alak
$i = 1;
foreach($_GET as $name->$value)
{
echo 'GET '.$i.': '.$name.' and VALUE = '.$value.'
';
$i+=1;
}
Basically i wanted to get all the variables,a nd assign them as a var to be fed to a mysql insert query.
But the code above is jusr P0C. When called/runned, get this error"
Fatal error: Cannot access empty property in /var/www/html/regForm_process.php on line 9
The fix? easy. change the ' -> ' to become ' => ' As easy as that -______-"
Hope this helps someone.
/alak
Comments
Post a Comment