the file you have sent is not the same as the one generating the error message.
The error massage is saying:
Notice: Undefined variable: store1 in /Applications/MAMP/htdocs/Pages/c01.php on line 10
however line 10 in the file you sent is
if (!function_exists("GetSQLValueString")) {
there is no variable named "store1" on line 10.
I need to see the copy of the file that is causing the error you are reporting.