php 模糊查询2个表的数据 sql语句怎么写

2025-05-21 13:12:49
推荐回答(1个)
回答1:

这是全部的代码
$title=htmlspecialchars($_POST["gjc"]);
$resultt=mysql_query("select * from xsktdl where text1 like '%$title%' union all select * from xsktdl2 where text1 like '%$title%'");
$i=9;
$j=0;
while($rowww=mysql_fetch_array($resultt))
{
$j++;
?>