Results 1 to 12 of 12

Thread: How to check for empty string and empty search type?

Threaded View

  1. #8

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: How to check for empty string and empty search type?

    visual ad how to check for m value which is search type ? how to use mysql_escape_string?

    It keeps giving me error:
    Parse error: syntax error, unexpected in bold parts!

    if ( isset($_GET['s']) )
    {
    $s = $_GET['s'];

    if(strlen($s) < 3) )
    {
    $error = " You can not search for empty string, your search word must be at least 3 character long. Try again please "
    }
    }
    Last edited by tony007; May 23rd, 2006 at 06:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width