このコードでタイトルをリンクするにはどうすればよいですか?タイトルをリンクする方法
echo "<div id='vblock'>";
echo "<div style='width:130px;height:95px;float:left'>";
echo '<a class="bloc_ca" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode($video['video_title']),0,20)).'.html"><img src="'.$thumb.'" alt="'.$vtit.'" width="120" height="90"></a></div>';
echo "<div class='cvtitle'>
<div><b>".html_entity_decode(substr($video['video_title'],0,100))."..</b></div>
<div class='cvdisc'><span style='word-break:wrap'>".html_entity_decode(substr($video['video_desc'],0,100))."</span></div>
<div class='cvviews'> View Count: <b>".$video['views']."</b></div></div></div>";
これは別のコードにリンクされています。その作業
echo '<a class="a_bloc" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode($video['video_title']),0,20)).'.html">
<div class="bloc">
<img src="'.$thumb.'" alt="'.$vtit.'" height="60" width="80">
<div class="txt">'.$video['video_title'].'</div>
</div></a>';
}
?>
ありがとうございます。
「」タグを使用してください。これはあなたの質問ですか? – Brad
これは、タイトルの第1コードに ''タグを使用する方法を教えてくれます。タイトルコードは '.html_entity_decode(substr($ video ['video_title']、0,100))です。" .. " – maxlk
あなたは何を求めていますか?文字通りアンカータグを使用する方法はあなたのコードの他の部分...私はあなたの質問に従っていません。 – Brad