Explorar o código

course table name 用配置文件参数

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
3fe4390b37
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/course/course_get.php

+ 2 - 2
app/course/course_get.php

@@ -6,8 +6,8 @@ require_once "../public/_pdo.php";
 require_once "../ucenter/function.php";
 
 $userinfo = new UserInfo();
-PDO_Connect(""._FILE_DB_COURSE_);
-$query = "SELECT * from course where id = ?   limit 0,1";
+PDO_Connect(_FILE_DB_COURSE_);
+$query = "SELECT * from "._TABLE_COURSE_." where id = ? ";
 $fCourse = PDO_FetchRow($query,array($_GET["id"]));
 
 if ($fCourse) {