note 35057 added to function.str-replace
| From: | red_wing1983 at yahoo dot com | Date: | Mon, 18 Aug 2003 06:56:01 +0000 |
| Subject: | note 35057 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54558@lists.php.net to get a copy of this message | ||
hi,can anyone help me with this pls??i am unable to replace the words....once i echo out the new
image path...it will still be the same..it remains unchange....i need to replace the words and put
it back to database...can anyone help??
thanks....
for($k=0; $k <= $Imagenum_result; $k++)
{
$Imagerow = mysql_fetch_array($ImageResult);
echo $Imagerow["imagepath"];
//echo $OldTunerName;
//echo $TunerName;
$Imagerow["newimagepath"] =
str_replace($OldTunerName,$TunerName,$Imagerow["imagepath"]);
echo $Imagerow["newimagepath"];//error here
//$NewDetailQuery=("UPDATE tbl_detail SET imagepath='$NewImagePath' WHERE
detail_id='Detail_id' ");
//mysql_query($NewDetailQuery);
}
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35057
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35057&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35057&report=yes