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

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.53 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. where OR where mysql - mysql query with two where clauses
  2. $sql =" SELECT DISTINCT
  3.             scr.*  
  4.         FROM scr
  5.             LEFT JOIN `users` ON `users`.user_id=scr.user_id
  6.  
  7.         WHERE $email_filter LOWER(scr.genre) LIKE '%$search_word_fix%' **HERE** $psez protage $wwc $prevoption $locatio  $rats $rat1 $rat2 $rat3 $rat4          
  8.         GROUP by scr.sp_name  
  9.         ORDER BY scr.grade DESC";
  10.        
  11. where (scr.genre = "searchkeyword" and other filters here)
  12. OR (scr.classification ="searchkeyword" and other filters here)