title: php + replace text inside an array resulting from query
body: <p>this is my approach, with no success anyways, but maybe it gives you an idea of what both my code and coding skills are like, as well as what I am trying to achieve.</p>
  
  <hr>
  
  <pre><code> $data1 = mysql_query("SELECT * from `todolist` WHERE date &gt; '$today' ") 
   or die(mysql_error());
  
   $data1b = str_replace("text-to-be-replaced", "replaced-text", $data1);
  
  while($info1 = mysql_fetch_array( $data1b )) 
   {
  Print "".$info1['thingtobedone'] . " with ".$info1['persontomeet'] . "&lt;br /&gt;";
   }
  </code></pre>
  
  <hr>
  
  <p>Also, my approach is incorrect since what I would like to do is set a bunch of search and replace cases.
  Something like a list of "search for X and replace for Y" instead of only one replacement. Originally i thought of doing something like "replace A for B and rename array as STEP2", then get array called STEP2 and "search for C and replace it for D, and rename array as STEP3" but...i think this might not be the best way to do so =/</p>
  
  <p>Any recommendations, pointers, corrections will be appreciated! Thanks in advance!</p>