|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
I may not understand you question,but couldn't you just write:
if($rowvalue[0]=='humor2') rather than you ereg statement? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > how to find a match in a text field ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|