Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML text from database not displaying correctly?
#1
If you've upgraded to mySQLi and you find that HTML text is displaying the HTML code as well as the text, all you need to do is update the PHP code as in the following example:

Old code:

PHP Code:
<?php echo($recordset->getColumnVal("textcolumn")); ?>

New code:

PHP Code:
<?php echo($recordset->getColumnVal("textcolumn",false)); ?>
Reply


Messages In This Thread
HTML text from database not displaying correctly? - by Mags - 08-29-2024, 02:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)