undefined index
I copied a website from my MacBook to my iMac and am now getting a "undefined index" error on the iMac (see my attachments). The page works perfectly on my Macbook and on the public site. Any ideas what's different?
I copied a website from my MacBook to my iMac and am now getting a "undefined index" error on the iMac (see my attachments). The page works perfectly on my Macbook and on the public site. Any ideas what's different?
This is a Notice... not an error. It probably doesn't effect the functionality of the page. You could probably just turn off notices in your php.ini file and it would work like it does on the other server.
I know I can simply dismiss the display of the "undefined Index" error by turning off displaying errors in the php.ini file... but WHAT causes this error and how do I correct the code so it no longer displays? See my attachments.
You aren't passing an Item_Name in the url but you code references it without checking to see if it exists.
You can correct it by checking by changing this:
$_GET['Item_Name']
to:
(isset($_GET['Item_Name'])?$_GET['Item_Name']:"")
Thanks for you prompt response, Ray. Hopefully I've now learned how to properly use the WebAssist MySQLi GUI... I've been typing in the runtime value manually (e.g., $_GET[" xxx ']) instead of simply using the GUI to set the runtime value. See my screen capture and let me know if I've FINALLY got this right.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.