Thursday, 24 September 2015

Mainly this error comes with $_GET, $_POST and $_REQUEST
Example :
Let us having a index.php page
form name='form1' method='post' action='index.php'
Enter your ID input type='text' value='' name='id'
................
................

and we want to use this 'id' to other page.
Then we use
$id=$_GET['id'];
Then it will show  Notices likes this
Notice: Undefined index: id
First we have to know about what is $_GET
In the php manual,it says “An associative array of variables passed to the current script via the URL parameters”. The word “associative array” clearly tells us what this error is. If we access any array variable which is not set, it will throw an error saying that the index is undefined.
All you need to do to fix it is change this line:
$id = $_GET['id'];
to this:
$id = isset($_GET['id']) ? $_GET['id'] : '';

if you have any query related to php ."skandkr24@gmail.com" -- This is my mail ID 
Free feel to mail me . I'll help you.



Few Linux App & commands which is going to used to Build AOSP(Android Open Source Project) Source Code

1. sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32n...