Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. search certain characters in an if statement
  2. if($x == "what is the code needed to be placed here to search if SGA is present?")
  3. {
  4.     .some code..
  5. }
  6. else
  7. {
  8.     .some code..
  9. }
  10.        
  11. if (strpos($fieldFromDatabase,'SGA')!==false) {
  12.  
  13.  
  14. } else {
  15.  
  16.  
  17. }