shage Posted September 17, 2007 Share Posted September 17, 2007 Im trying to search and replace database sites column options with $snr which is set by the user, im lost and cant find something that i understand, thank you Link to comment https://forums.phpfreaks.com/topic/69681-php-mysql/ Share on other sites More sharing options...
AdRock Posted September 17, 2007 Share Posted September 17, 2007 You need to post your code Link to comment https://forums.phpfreaks.com/topic/69681-php-mysql/#findComment-350118 Share on other sites More sharing options...
freakstyle Posted September 17, 2007 Share Posted September 17, 2007 without seeing the actual source, this might be helpful to you:: $OrgVar = ' Hi There, please replace me' ; $snr = 'read this.' ; $UpdatedVar = str_replace( 'replace me', $snr, $OrgVar ) ; echo $UpdatedVar ; // output: Hi There, please read this. reference: http://us3.php.net/manual/en/function.str-replace.php good luck Link to comment https://forums.phpfreaks.com/topic/69681-php-mysql/#findComment-350163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.