We have been running PHP and MySQL for many months without any problems. Starting last evening we started receiving this
error "Warning: Undefined variable: pg in /home/sites/sitenum/web/index.php on
line 4" The error does not come up each time, it is very sporadic. Could this be a problem on the server? The hosting company says that PHP has not been changed or upgraded. Any ideas as to the cause or how to fix it?
The line of code generating the error:
if($pg != "") {$redirectlink = "$pg";} else {$redirectlink = "first.php";}
Thank You,
Spencer