根據搜索模式,我需要從服務器獲取顯示的數據。根據文本區域值選擇行
include("dbconfig.php");
$sql="select * from blog where title LIKE '{$title}%'";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
echo"<tr>";
echo"<td><img src='uploads/".$row['file']."' height='150px' width='200px'</td>";
echo"<td><h3>".$row['title']."</h3>".$row['description']."</td>";
echo"</tr>";
}
那麼,你面臨的問題是什麼? –
@swapnika有什麼問題? –