#1
  1. No Profile Picture
    mrtesting
    Guest
    Devshed Newbie (0 - 499 posts)
    i am using ereg($rowvalue[0],'humor2')==true
    to find a match in the text field.

    how can i find a exact match, ie.
    the text field contains 'humor,humor2'

    so, if using ereg the result will be true for both humor and humor2 but only 1 - humor2 is correct.

    how do i find an exact match ?

    thanks
  2. #2
  3. No Profile Picture
    moderator
    Guest
    Devshed Newbie (0 - 499 posts)
    I may not understand you question,but couldn't you just write:

    if($rowvalue[0]=='humor2')

    rather than you ereg statement?

Similar Threads

  1. help with tables and wordwrapping
    By junkedBrian613 in forum PHP Development
    Replies: 2
    Last Post: February 15th, 2004, 06:42 PM
  2. Wan to select partial text in a text field
    By raghava66 in forum HTML Programming
    Replies: 2
    Last Post: February 12th, 2004, 03:11 AM
  3. Simple find and replace word search for a text file with php?
    By rabid lemming in forum PHP Development
    Replies: 4
    Last Post: February 1st, 2004, 10:37 PM
  4. how to keep table on top, not centered??
    By vinyl in forum HTML Programming
    Replies: 2
    Last Post: January 20th, 2004, 07:19 PM
  5. radio button and text field
    By j1mz in forum HTML Programming
    Replies: 0
    Last Post: January 20th, 2004, 08:57 AM

IMN logo majestic logo threadwatch logo seochat tools logo