Handling a few different types of data

What is the best way to handle a link that has a video within and then embed it?

I considered storing the link in the database and then showing it embedded. How could I write code to handle the embedded side of the link?


If $youtube_link contains link gotten from DB, then it would look like this:

echo '<object width="640" height="385">
<param name="movie" value="'.$youtube_link.'"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="'.$youtube_link.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>';

Need Your Help

How to yield all values returned by nested iterator?

python recursion tree yield

I created a simple in-depth tree scan for JSON (only lists and values, without objects):

ASP.net website project cannot connect to local SQL Server 2008 Express instance

asp.net sql connection-string

I need to connect a SQL Server 2008 database to an asp.net website project. Here's the connection string in my web.config file:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.