Home › Forums › Back End › Substring headaches › Re: Substring headaches
First:
If your page is “not loading,” that probably means you have error reporting disabled. You should enable error reporting during development so you don’t have to guess at what’s going wrong.
In your php.ini file, find these settings and comment them out (i.e., prepend them with a `;` – **do not** delete them, you’ll want to restore them when you’re done with your debugging):
;error_reporting = {this might be any of several values}
;display_errors = Off
;display_startup_errors = Off
then give them these values:
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
Next, the obvious problem with your function is that `$wares` does not exist.
It’s also very difficult to figure out what you’re *trying* to do – your function seems to be very tightly related to the data structures you expect to receive. Can you show an example of what your arrays [are supposed to] look like?