php - Embedding a youtube video through mysql - ERROR 404 -


i'm trying store youtube links in mysql database in order view them in page,

     <embed width="420" height="345"  src="'<?php $video[1] ?>'"         type="application/x-shockwave-flash"></embed> 

the video variable imported database through mysql_fetch_row, when use tag error 404 page not found , embed tag white screen. have altered .ht configs deny allow read , don't know if there didn't .

you have:

<embed width="420" height="345"  src="'<?php $video[1] ?>'"      type="application/x-shockwave-flash"></embed> 

you need:

<embed width="420" height="345"  src="<?php echo $video[1] ?>"     type="application/x-shockwave-flash"></embed> 

p.s.: have lot of other errors in code.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -