SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: str_replace

  1. #1
    SitePoint Member
    Join Date
    May 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    str_replace

    Hi Guys,
    When I apply str_replace to one recordset row, it works fine. When I apply it to the next row in my results page, the page comes up blank. Hope someone can help.
    Code:
    <?php  echo str_replace(",","<br>", $row_Recordset2['Pos_Verbal']) ?>

  2. #2
    SitePoint Evangelist captainccs's Avatar
    Join Date
    Mar 2004
    Location
    Caracas, Venezuela
    Posts
    515
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You need to show a bit more code to see how $row_Recordset2[] is populated. If it comes out blank then most likely it was blank before the str_replace() was applied to it.
    Denny Schlesinger
    web services

  3. #3
    SitePoint Member
    Join Date
    Jan 2012
    Location
    Chennai
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try by assigning the value of $row_Recordset2['Pos_Verbal'] to some other variable and then echo it

  4. #4
    SitePoint Member
    Join Date
    May 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help, much appreciated.

    Col F


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •