hiii
i want to share a video link from youtube in textarea and show on the div ,when im share embeded code from youtube it showed on the div but when im share the link ,it only show the link so how i ll i share link in same way as embedeb code ??
<?php
(isset($_SESSION['email_id']))
{
echo $_SESSION['email_id'];
$u_id=$_SESSION['email_id'];
}
$sql="select * from post where post_id='$user_id'";
$result=mysql_query($sql);
$total_description=mysql_num_rows($result);
//$user_id=$_SESSION['email_id'];
while($row=mysql_fetch_array($result))
{ $description=$row['description'];
//$user_name=$row=['fname'];
$user_name=$row['name'];
$user_lname=$row['lname'];
$user_email=$_SESSION['email_id'];
}
$description="";
if(isset($_POST['submit']))
{
$date=@date('Y-m-d H-i-s');
$description=$_POST['description'];$_SESSION['email_id']=$user_id;
$user_name=$row['name'];
$user_lname=$row['lname'];
$post="INSERT INTO `post`(`post_id`,`comment_id`,`user_id`,`description`,`date`) VALUES(NULL,0,'$user_id','$description','$date')";
$result1=mysql_query($post);
//echo $result;
if(!$result)
{
die(mysql_error());
}
}
?>
//and the div where it show
<div class="posted">
<?php echo "$user_name"." "."$user_lname";?>
<?php echo $description;?>
</div>