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.
$data1 = mysql_query("SELECT * from `todolist` WHERE date > '$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'] . "<br />";
}
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 =/
Any recommendations, pointers, corrections will be appreciated! Thanks in advance!
SELECT
statement do you wish to perform the replacement on? – Zane Bien Jul 23 '12 at 4:13