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 Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/69681-php-mysql/#findComment-350163 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.