PHP 连接表 - 将普通查询转换为 Prepare_query() [关闭]

问题描述 投票:0回答:0

我正在尝试将下面的连接表查询更改为准备语句程序方式

$query = mysqli_query($dbConnection,"SELECT jobs.job_title, jobs.employer_id, employers.employer_name, FROM jobs LEFT JOIN employers ON jobs.employer_id = employers.employer_id");

   while($row = mysqli_fetch_assoc($query)){
   $job_title = $row['job_title'];
   $employer_id = $row['employer_id'];
   $employer_name = $row['employer_name'];
  }
php join mysqli prepared-statement
© www.soinside.com 2019 - 2024. All rights reserved.