//oldWord command
$oldWord = array('good','green');
foreach ($oldWord as $key => $value)
{
$sql = "select * from `words` where `name` = '" . $value . "'";
$res = mysql_query($sql);
while ($row = mysql_fetch_assoc($res)) {
echo $row["SYNONYM1"];
}
}
I need help with getting echo $row["SYNONYM1"]; to display correctly. The database search the word good and green and replaces it with great and blue and that is what I want it to day, but it echo the information from the database together like this:
greatblue
How do I get the two words to slip or display as great blue
$oldWord = array('good','green');
foreach ($oldWord as $key => $value)
{
$sql = "select * from `words` where `name` = '" . $value . "'";
$res = mysql_query($sql);
while ($row = mysql_fetch_assoc($res)) {
echo $row["SYNONYM1"];
}
}
I need help with getting echo $row["SYNONYM1"]; to display correctly. The database search the word good and green and replaces it with great and blue and that is what I want it to day, but it echo the information from the database together like this:
greatblue
How do I get the two words to slip or display as great blue