Adding js into mysql table

Hello,

  1. Can Html cqn be added into mysql database?
  2. Can Javascript code be addedd into mysql database?

Does it considered as a security breach?

Of course they can be added, and in fact I’ve even added PHP raw code to mysql table. All you have to do is to have a table column with type ‘Text’ rather than ‘Varchar’, and insert the code into database table normally. If it is carried out in admin control panel kind of things, there will be little security issue. However, if it is available for general public, you will need extensive protection to secure your website.

Correct. Just watch how you make the quotes safe (and decode upon retrieval).

Regards,

DK