I want to store video embed code in mysql database.. Which is the best way to store it in database, the code can be from various video hosting services..
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest following:
in a way safer is to store url only, as it’s easier to validate. also, given that you store url, it’s always possible to reverse engineer the embed code 😉
so it depends on your skill and needs after all.