why doesn't this work!!! - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: why doesn't this work!!! (/showthread.php?tid=47492) why doesn't this work!!! by saralk on 07-12-2005 at 10:54 AM
* saralk waits for someone to point out a really obvious mistake code: When I run that code, it only highlights the last word in the array, and not the ones before it. Any Ideas? RE: why doesn't this work!!! by Eljay on 07-12-2005 at 10:57 AM use $text .= str_replace crap here; RE: why doesn't this work!!! by saralk on 07-12-2005 at 11:00 AM nope, that doesn't work it just adds $text again and the next time round it highlights the next word in the array. RE: why doesn't this work!!! by Eljay on 07-12-2005 at 11:02 AM
whats $row[Text]? RE: why doesn't this work!!! by saralk on 07-12-2005 at 11:04 AM
code: RE: why doesn't this work!!! by Chris.1 on 07-12-2005 at 01:29 PM
Everytime you run the foreach loop, you are overwriting the value of $text so that when it is echoed out only the last value run is shown. RE: why doesn't this work!!! by saralk on 07-12-2005 at 01:36 PM
I fixed it now, and it was something really simple |