phpSensei Posted July 19, 2007 Share Posted July 19, 2007 I want two things replaced in a message posted by a user dont know how... I use this: $sad="sad"; $img="img"; $smilies = str_replace("", '<img src="files/smilies/happy.gif" width="18" height="24">', $row['message'] || $sad, $img, $row['message']); Link to comment https://forums.phpfreaks.com/topic/60880-is-this-correct/ Share on other sites More sharing options...
simcoweb Posted July 20, 2007 Share Posted July 20, 2007 Have you tried it? Link to comment https://forums.phpfreaks.com/topic/60880-is-this-correct/#findComment-302917 Share on other sites More sharing options...
trq Posted July 20, 2007 Share Posted July 20, 2007 Is this correct? No. But you allready know that because it should be throwing errors. Why don't you actually ask the question you need answered? Link to comment https://forums.phpfreaks.com/topic/60880-is-this-correct/#findComment-302922 Share on other sites More sharing options...
phpSensei Posted July 20, 2007 Author Share Posted July 20, 2007 Please thorpe your magesty, how do you make it happen with your all mightyness.. Link to comment https://forums.phpfreaks.com/topic/60880-is-this-correct/#findComment-302926 Share on other sites More sharing options...
trq Posted July 20, 2007 Share Posted July 20, 2007 Added to my ignore list. Link to comment https://forums.phpfreaks.com/topic/60880-is-this-correct/#findComment-302952 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.