-8

Possible Duplicate:
PHP: “Notice: Undefined variable” and “Notice: Undefined index”

i m facing problem with my code in php and it showing a error "Notice: Undefined variable: click"

the code is where it showing notice / error

<li class="outer one <?=$click?>">
Community
  • 1
  • 1
Akki
  • 9
  • 3
  • 1
    Are you expecting `$click` to contain a value? what makes you expect that? You need to explain more about what's going on elsewhere in the program than just this; we really don't have enough to go on here to make any helpful suggestions. – SDC Dec 06 '12 at 10:37

1 Answers1

2

Please make sure you've declared the variable $click above of the code line. This error indicates that the variable is not defined.

To avoid to this error you can use:

< li class="outer one [php] if(isset($click)) echo $click; [php]">
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
vaibhav
  • 129
  • 4