阅读背景:

如果两个表的列具有相同的名称,如何在mySQL中连接两个表

来源:互联网 
<?php
  error_reporting(E_ALL);
  ini_set('display_errors', 1);

  require_once 'admin/include/dbconfig.php';

  $counter = 0;

  $stmt = $DB_con->prepare('SELECT f_category.f_route, f_content.f_doc, 
  f_content.f_thumb, f_content.f_title FROM f_content, f_category WHERE 
  f_content.f_id = f_category.f_id AND f_id = :uid ORDER BY f_content.id 
  DESC');

  $stmt->bindParam(':uid',$id, PDO::PARAM_INT);
  $stmt->execute();

  while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
  extract($row);
?>
<?php
  error_reporting(E_ALL);
  ini_set('disp



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: