-3
include 'connect.php';
msql_select_db("u972015033_jobss"); or die("Could not find DB");
if(isset($_POST['search'])){
$searchq = $_POST['search'];
$query = msql_query("SELECT * FROM job_search WHERE job_name LIKE '%$searchq%'"); or die("Could not find");
$count = mysql_num_rows($query);
if($count == 0){
$output = 'There was no results found';
else{
while($row = mysql_fetch_array($query)){
$jobname = $row['job_name'];
$jobdesc = $row['job_desc'];
$jobcomp = $row['job_company'];
$output .= '<div> '.$jobname.' '.$jobdesc.' '.$jobcomp.'</div>';
echo = "$output";
}
}
}
}
我不知道什么是请帮助 它的一个基本的脚本来查询数据库,并显示 输出简单的PHP错误T_print错误
您没有给出mysql_select_db()中的链接标识符 –
您是否缺少关闭} if if before else。 –
您的代码中存在多个语法错误,请先进行一些基本的调试。 – Epodax