Hello,
I’m new to programming PHP and I’ve attempted to address a (what I like to think is simple) error in my php code. I can’t figure out why I’m getting this error over and over, it’s filling up my error log very fast. Any help appreciated. ;D
Error I am getting:
Undefined variable: IMG in C:\xampp\htdocs\otis15\otis15\public\jobs_dt.php on line 59
(doesn’t line 57 define the $IMG variable?
[php]
52 array(
53 ‘db’ => ‘DATE_CERTIFIED’,
54 ‘dt’ => 9,
55 ‘formatter’ => function( $d, $row ) {
56 if($d != ‘0000-00-00’){
57 $IMG = ‘’;
58 }
59 return $IMG;
60 }
61 ),
[/php]