How to solve the issue: PHP Notice: Undefined index: …

PHP Notice: Undefined index: … This is not an error. It is just a warning message. The solutions for this issue are as follows: 1: Modify php.ini, make sure: error_reporting = E_ALL & ~E_NOTICE. 2: Make sure you write the code in the correct way at the very first stage. 3: Add error_reporting(0); into the [...]

PHP issues

PHP syntax: to get a value of a variable from url, like: $url = “show_cat.php?catid=”.($row["catid"]). The PHP script should be dealt with something like: $var=_REQUEST(“var”). if don’t do like this, you can’t get the value of the variable. We can’t use reserve variable $PHP_SELF directly in PHP file, we should use $_SERVER['PHP_SELF'] instead. I think [...]