View Single Post
  #3 (permalink)  
Old 10-15-2008, 07:41 PM
David Powers
 
Posts: n/a
Diggs:
Default Re: PHP Notice Problem

Gary White wrote:
> if (!isset($_GET['search']))
> {
> $search = $_GET['search'];


That won't work. You've put the negative operator in there by mistake.

It should be this:

$search = isset($_GET['search']) ? $_GET['search'] : null;

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Reply With Quote