I'm having a difficult time figuring out what PHP setting is causing this problem to crop up when I moved an application from a Linux box to a Windows XP machine.
On my Linux box, I accessing them like so:
echo $row[last];
This same code on my XP box generates this error:
Notice: Use of undefined constant last - assumed 'last' in C:\Program Files\Apache Group\Apache2\htdocs\testdb.php on line 14
So I changed the code on the XP box to:
echo $row['last'];
No more error. So I have a few questions. First, is what I was doing on my Linux box poor style, perhaps even invalid code that somehow slips through? Also, is there a setting I can change on the XP box in my php.ini file that would allow the code from the Linux box to run as-is?
On my Linux box, I accessing them like so:
echo $row[last];
This same code on my XP box generates this error:
Notice: Use of undefined constant last - assumed 'last' in C:\Program Files\Apache Group\Apache2\htdocs\testdb.php on line 14
So I changed the code on the XP box to:
echo $row['last'];
No more error. So I have a few questions. First, is what I was doing on my Linux box poor style, perhaps even invalid code that somehow slips through? Also, is there a setting I can change on the XP box in my php.ini file that would allow the code from the Linux box to run as-is?