I am build a news portal website run on php and mysql. I have a description field where i might need to place html tags such as links to websites and i might need to place php in there aswell. The field is a TEXT field.

Will i have any problems such as inserting special characters "<,/:;"'[{" and so on. If so how do i bypass this problem.

    you can use html_speacial_chars function.

      9 days later

      And after you have stored it with the function 'Onurphp' called above, when you want to fetch and display the values back on the screen i use 'html_entity_decode' to display it right

        Write a Reply...