this is th code: <td><textarea name="fullpage[]" cols="140" rows="16" id="fullpage"><?=stripslashes ($rows['fullpage']) ?></textarea></td> PHP: <?phpif($Submit){ for($i=0;$i<$count;$i++){ $sql1="UPDATE $tbl_name SET title='$title[$i]', fullpage='$fullpage[$i]' WHERE id='$id[$i]'"; $result1=mysql_query($sql1); } } if($result1){ echo "<meta http-equiv=\"refresh\" content=\"0\">"; } mysql_close();?> PHP: all i want to do is use str_replace to replace "</td>" with " </td>" on fullpage='$fullpage[$i]' Thanks for help.
try with all below options. I may hit correctly. $fullpage[$i] = str_replace("<//td>"," <//td>",$fullpage[$i]); $fullpage[$i] = str_replace("</td>"," </td>",$fullpage[$i]); $fullpage[$i] = str_replace("</td>"," </td>:",$fullpage[$i]); $fullpage[$i] = str_replace("<//td>"," <//td>:",$fullpage[$i]);