roberthj Posted May 25, 2008 Share Posted May 25, 2008 I can display text stored in a MySQL database VARCHAR field using, e.g., <?php echo $row_publicpages['h1text'];?> I have managed to include HTML tags in the text field by enclosing it in '<html stuff>'. This works but the enclosing ' ' show on the page. If anyone has a way of hiding the ' ' I would like to know. But I have run into a brick wall trying to include php code in the text field - such as <?php echo $row_charge['ocean_diver']; ?> It just does not work!!! And I would really like to be able to do this!!! Any suggestions out there? Please keep answers simple as I am VERY new to all this!! Rob Link to comment https://forums.phpfreaks.com/topic/107185-include-php-code-in-mysql-text-fields/ Share on other sites More sharing options...
BlueSkyIS Posted May 25, 2008 Share Posted May 25, 2008 if you're new to this, then: you shouldn't store PHP in a MySQL database unless there is a real good reason to do so. Why are you trying to store PHP in a database? Link to comment https://forums.phpfreaks.com/topic/107185-include-php-code-in-mysql-text-fields/#findComment-549524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.