title: Word anagrammer with sql's %
body: <p>I need to create a script searching for words with 'blanks', which basically are % in sql.</p>
  
  <p><code>$numberofblanks = 1; //max 13</code><br>
  <code>$searchedword = "WORD";</code><br>
  <code>$searchedwordsorted = "DORW";</code><br></p>
  
  <p>Results given should be:<br>
  WORDY 
  WORLD
  CROWD
  SWORD
  WORDS
  DOWRY
  ROWED
  DROWN
  DOWER
  ROWDY
  <br><br>
  %word, w%ord, wo%rd, wor%d, word% would do, but what about more complicated queries, with 2 or more blanks?
  <br>Also was wondering if $searchedwordsorted is any helpful or it doesn't really matter and it's just waste of space in my table.</p>
  
  <p>Thank you kindly for your help guys.
  <br>.mike</p>