note 35057 rejected from function.str-replace by didou

From: Date: Mon, 18 Aug 2003 07:44:13 +0000
Subject: note 35057 rejected from function.str-replace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54560@lists.php.net to get a copy of this message
Note Submitter: red_wing1983@yahoo.com ---- 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); }

« previous php.notes (#54560) next »