I'm trying to add HTML with variables into a field, but I just can't seem to get it to work.
$time = strtotime("now");
$linkme = "<a href='http://www.website.com/view_photo.php?member_id=$member_id&photo_id=$photo_id'><img src='http://www.website.com$photo_url'></a>";
$date = date("d/m/Y g:h:s");
$sql2="insert into videos_shared";
$sql2.="(member_id";
$sql2.=", video_description";
$sql2.=", share_type";
$sql2.=", added_date";
$sql2.=", added_time)";
$sql2.=" values($member_id";
$sql2.=", '$linkme'";
$sql2.=", 1";
$sql2.=", '$date'";
$sql2.=", '$time')";
$result=mysql_query($sql2);
This is the final process after a user uploads a image, but it appears to be skipped over.