I'm building a website for a friend, and he basically wants to be able to add some youtube videos to his page from time to time.
Trying to keep it simple, and not time consuming, I wanted to simply store the "share video" embed code from youtube.com in the mySql database and simply echo it in the right container using php.
So obviously, there will be a moment where the embed code is going to be saved in the database using post ( in a session / htaccess password protected admin page )
And there is also a moment where a query will be made to print it in the website document.
MY QUESTION IS : Is this a dangerous practice? Is there risk of sql failure/injections that could be caused by, let's say the slashes contained in the string ?
example of the saved code :
Thanks a lot Martin