php search issue

Discussion in 'PHP' started by subha rr, Dec 23, 2008.

  1. #1
    Hi.....

    below the php code for search name and date

    this code cannot display the search details...

    Pls help me
     
    subha rr, Dec 23, 2008 IP
  2. iDemonix

    iDemonix Peon

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have literally just glanced over that code, you really need to read a guide on good practice like indenting and proper caps in SQL. Anyway with about a 5 second glance I see you're using like 'nam' - should this be like '$nam' and without regards to that, like needs a % to make it useful. '%nam' will found vietnam for example, 'nam%' will found name and '%nam%' will find asdnamasd.
     
    iDemonix, Dec 23, 2008 IP