How to insert html code into mysql database using php?



How to insert html code into mysql database using php?..

Answer / Anamika Khare

It's generally not recommended to store HTML code directly into a MySQL database. If you need to store formatted text, consider using an HTML-safe markup language like Markdown or BBCode.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

Explain triggers and stored procedures?

1 Answers  


What is the data type for file in mysql?

1 Answers  


If we create a column with data type VARCHAR(3), what would we expect to see in MySQL table?

2 Answers   ABC,


What is the purpose of mysql database?

1 Answers  


How would you get the current date in mysql?

1 Answers  


How to check server status with 'mysqladmin'?

1 Answers  


How to use mysqldump to create a copy of the database?

1 Answers  


How will show all records containing the name "sonia" and the phone number '9876543210'

1 Answers  


Is mysql workbench a dbms?

1 Answers  


What is the difference between mysql_fetch_array and mysql_fetch_object?

4 Answers   CTS,


Why are function needed?

1 Answers  


What causes mysql too many connections?

1 Answers  


Categories