- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_DB.php
r21502 r21514 64 64 * 引数 $add == false でカラムが存在しない場合 false 65 65 */ 66 function sfColumnExists($table_name, $col_name, $col_type = "", $dsn = "", $add = false) {66 function sfColumnExists($table_name, $col_name, $col_type = '', $dsn = '', $add = false) { 67 67 $dbFactory = SC_DB_DBFactory_Ex::getInstance(); 68 68 $dsn = $dbFactory->getDSN($dsn); … … 75 75 // 正常に接続されている場合 76 76 if (!$objQuery->isError()) { 77 list($db_type) = explode( ":", $dsn);77 list($db_type) = explode(':', $dsn); 78 78 79 79 // カラムリストを取得 … … 104 104 * $add == false で, データが存在しない場合 false 105 105 */ 106 function sfDataExists($table_name, $where, $arrval, $dsn = "", $sql = "", $add = false) {106 function sfDataExists($table_name, $where, $arrval, $dsn = '', $sql = '', $add = false) { 107 107 $dbFactory = SC_DB_DBFactory_Ex::getInstance(); 108 108 $dsn = $dbFactory->getDSN($dsn); … … 128 128 * @return array 店舗基本情報の配列 129 129 */ 130 function sfGetBasisData($force = false, $col = "") {130 function sfGetBasisData($force = false, $col = '') { 131 131 static $data; 132 132 … … 134 134 $objQuery =& SC_Query_Ex::getSingletonInstance(); 135 135 136 if ($col === "") {136 if ($col === '') { 137 137 $arrRet = $objQuery->select('*', 'dtb_baseinfo'); 138 138 } else { … … 188 188 if (count($category_id) > 0) { 189 189 $arrRet = $this->sfGetParents('dtb_category', 'parent_category_id', 'category_id', $category_id); 190 $root_id = isset($arrRet[0]) ? $arrRet[0] : "";190 $root_id = isset($arrRet[0]) ? $arrRet[0] : ''; 191 191 } else { 192 $root_id = "";192 $root_id = ''; 193 193 } 194 194 } else { 195 195 // ROOTカテゴリIDをなしに設定する 196 $root_id = "";196 $root_id = ''; 197 197 } 198 198 $this->g_root_id = $root_id; … … 214 214 $arrRet = $objQuery->select('customer_id', 'dtb_order', "order_id = ?", array($order_id)); 215 215 $customer_id = $arrRet[0]['customer_id']; 216 if ($customer_id != ""&& $customer_id >= 1) {216 if ($customer_id != '' && $customer_id >= 1) { 217 217 $arrRet = $objQuery->select('point', 'dtb_customer', "customer_id = ?", array($customer_id)); 218 218 $point = $arrRet[0]['point']; … … 229 229 } 230 230 } else { 231 $rollback_point = "";232 $point = "";231 $rollback_point = ''; 232 $point = ''; 233 233 } 234 234 return array($point, $rollback_point); … … 244 244 function sfGetCatTree($parent_category_id, $count_check = false) { 245 245 $objQuery =& SC_Query_Ex::getSingletonInstance(); 246 $col = "";247 $col .= " cat.category_id,";248 $col .= " cat.category_name,";249 $col .= " cat.parent_category_id,";250 $col .= " cat.level,";251 $col .= " cat.rank,";252 $col .= " cat.creator_id,";253 $col .= " cat.create_date,";254 $col .= " cat.update_date,";255 $col .= " cat.del_flg, ";256 $col .= " ttl.product_count";257 $from = "dtb_category as cat left join dtb_category_total_count as ttl on ttl.category_id = cat.category_id";246 $col = ''; 247 $col .= ' cat.category_id,'; 248 $col .= ' cat.category_name,'; 249 $col .= ' cat.parent_category_id,'; 250 $col .= ' cat.level,'; 251 $col .= ' cat.rank,'; 252 $col .= ' cat.creator_id,'; 253 $col .= ' cat.create_date,'; 254 $col .= ' cat.update_date,'; 255 $col .= ' cat.del_flg, '; 256 $col .= ' ttl.product_count'; 257 $from = 'dtb_category as cat left join dtb_category_total_count as ttl on ttl.category_id = cat.category_id'; 258 258 // 登録商品数のチェック 259 259 if ($count_check) { 260 $where = "del_flg = 0 AND product_count > 0";260 $where = 'del_flg = 0 AND product_count > 0'; 261 261 } else { 262 $where = "del_flg = 0";263 } 264 $objQuery->setOption( "ORDER BY rank DESC");262 $where = 'del_flg = 0'; 263 } 264 $objQuery->setOption('ORDER BY rank DESC'); 265 265 $arrRet = $objQuery->select($col, $from, $where); 266 266 … … 312 312 function sfGetMultiCatTree($product_id, $count_check = false) { 313 313 $objQuery =& SC_Query_Ex::getSingletonInstance(); 314 $col = "";315 $col .= " cat.category_id,";316 $col .= " cat.category_name,";317 $col .= " cat.parent_category_id,";318 $col .= " cat.level,";319 $col .= " cat.rank,";320 $col .= " cat.creator_id,";321 $col .= " cat.create_date,";322 $col .= " cat.update_date,";323 $col .= " cat.del_flg, ";324 $col .= " ttl.product_count";325 $from = "dtb_category as cat left join dtb_category_total_count as ttl on ttl.category_id = cat.category_id";314 $col = ''; 315 $col .= ' cat.category_id,'; 316 $col .= ' cat.category_name,'; 317 $col .= ' cat.parent_category_id,'; 318 $col .= ' cat.level,'; 319 $col .= ' cat.rank,'; 320 $col .= ' cat.creator_id,'; 321 $col .= ' cat.create_date,'; 322 $col .= ' cat.update_date,'; 323 $col .= ' cat.del_flg, '; 324 $col .= ' ttl.product_count'; 325 $from = 'dtb_category as cat left join dtb_category_total_count as ttl on ttl.category_id = cat.category_id'; 326 326 // 登録商品数のチェック 327 327 if ($count_check) { 328 $where = "del_flg = 0 AND product_count > 0";328 $where = 'del_flg = 0 AND product_count > 0'; 329 329 } else { 330 $where = "del_flg = 0";331 } 332 $objQuery->setOption( "ORDER BY rank DESC");330 $where = 'del_flg = 0'; 331 } 332 $objQuery->setOption('ORDER BY rank DESC'); 333 333 $arrRet = $objQuery->select($col, $from, $where); 334 334 … … 362 362 $objQuery =& SC_Query_Ex::getSingletonInstance(); 363 363 $arrCatID = $this->sfGetParents('dtb_category', 'parent_category_id', 'category_id', $category_id); 364 $ConbName = "";364 $ConbName = ''; 365 365 366 366 // カテゴリ名称を取得する 367 367 foreach ($arrCatID as $key => $val) { 368 $sql = "SELECT category_name FROM dtb_category WHERE category_id = ?";368 $sql = 'SELECT category_name FROM dtb_category WHERE category_id = ?'; 369 369 $arrVal = array($val); 370 370 $CatName = $objQuery->getOne($sql,$arrVal); … … 372 372 } 373 373 // 最後の | をカットする 374 $ConbName = substr_replace($ConbName, "", strlen($ConbName) - 2, 2);374 $ConbName = substr_replace($ConbName, '', strlen($ConbName) - 2, 2); 375 375 376 376 return $ConbName; … … 407 407 408 408 // カテゴリ名称を取得する 409 $sql = "SELECT category_name FROM dtb_category WHERE category_id = ?";409 $sql = 'SELECT category_name FROM dtb_category WHERE category_id = ?'; 410 410 $arrVal = array($arrRet['id']); 411 411 $arrRet['name'] = $objQuery->getOne($sql,$arrVal); … … 424 424 * @return array カテゴリツリーの配列 425 425 */ 426 function sfGetCategoryList($addwhere = "", $products_check = false, $head = CATEGORY_HEAD) {427 $objQuery =& SC_Query_Ex::getSingletonInstance(); 428 $where = "del_flg = 0";429 430 if ($addwhere != "") {426 function sfGetCategoryList($addwhere = '', $products_check = false, $head = CATEGORY_HEAD) { 427 $objQuery =& SC_Query_Ex::getSingletonInstance(); 428 $where = 'del_flg = 0'; 429 430 if ($addwhere != '') { 431 431 $where.= " AND $addwhere"; 432 432 } 433 433 434 $objQuery->setOption( "ORDER BY rank DESC");434 $objQuery->setOption('ORDER BY rank DESC'); 435 435 436 436 if ($products_check) { 437 $col = "T1.category_id, category_name, level";438 $from = "dtb_category AS T1 LEFT JOIN dtb_category_total_count AS T2 ON T1.category_id = T2.category_id";439 $where .= " AND product_count > 0";437 $col = 'T1.category_id, category_name, level'; 438 $from = 'dtb_category AS T1 LEFT JOIN dtb_category_total_count AS T2 ON T1.category_id = T2.category_id'; 439 $where .= ' AND product_count > 0'; 440 440 } else { 441 $col = "category_id, category_name, level";441 $col = 'category_id, category_name, level'; 442 442 $from = 'dtb_category'; 443 443 } … … 466 466 467 467 // カテゴリ名リストを取得 468 $col = "category_id, parent_category_id, category_name";469 $where = "del_flg = 0";470 $objQuery->setOption( "ORDER BY level");468 $col = 'category_id, parent_category_id, category_name'; 469 $where = 'del_flg = 0'; 470 $objQuery->setOption('ORDER BY level'); 471 471 $arrRet = $objQuery->select($col, 'dtb_category', $where); 472 472 $arrCatName = array(); … … 474 474 $arrCatName[$arrTmp['category_id']] = 475 475 (($arrTmp['parent_category_id'] > 0)? 476 $arrCatName[$arrTmp['parent_category_id']] : "")476 $arrCatName[$arrTmp['parent_category_id']] : '') 477 477 . CATEGORY_HEAD . $arrTmp['category_name']; 478 478 } 479 479 480 $col = "category_id, parent_category_id, category_name, level";481 $where = "del_flg = 0";482 $objQuery->setOption( "ORDER BY rank DESC");480 $col = 'category_id, parent_category_id, category_name, level'; 481 $where = 'del_flg = 0'; 482 $objQuery->setOption('ORDER BY rank DESC'); 483 483 $arrRet = $objQuery->select($col, 'dtb_category', $where); 484 484 $max = count($arrRet); … … 489 489 $arrValue[$cnt] = $arrRet[$cnt]['category_id']; 490 490 } else { 491 $arrValue[$cnt] = "";491 $arrValue[$cnt] = ''; 492 492 } 493 493 } else { … … 511 511 function sfGetCategoryId($product_id, $category_id = 0, $closed = false) { 512 512 if ($closed) { 513 $status = "";513 $status = ''; 514 514 } else { 515 $status = "status = 1";515 $status = 'status = 1'; 516 516 } 517 517 $category_id = (int) $category_id; … … 521 521 } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && SC_Helper_DB_Ex::sfIsRecord('dtb_products','product_id', $product_id, $status)) { 522 522 $objQuery =& SC_Query_Ex::getSingletonInstance(); 523 $where = "product_id = ?";523 $where = 'product_id = ?'; 524 524 $category_id = $objQuery->getCol('category_id', 'dtb_product_categories', "product_id = ?", array($product_id)); 525 525 } else { … … 545 545 546 546 // 現在の商品カテゴリを取得 547 $arrCat = $objQuery->select( "product_id, category_id, rank",547 $arrCat = $objQuery->select('product_id, category_id, rank', 548 548 'dtb_product_categories', 549 "category_id = ?",549 'category_id = ?', 550 550 array($category_id)); 551 551 … … 577 577 578 578 // 現在の商品カテゴリを取得 579 $arrCat = $objQuery->select( "product_id, category_id, rank",579 $arrCat = $objQuery->select('product_id, category_id, rank', 580 580 'dtb_product_categories', 581 "category_id = ?",581 'category_id = ?', 582 582 array($category_id)); 583 583 … … 605 605 $objQuery =& SC_Query_Ex::getSingletonInstance(); 606 606 $objQuery->delete('dtb_product_categories', 607 "category_id = ? AND product_id = ?", array($category_id, $product_id));607 'category_id = ? AND product_id = ?', array($category_id, $product_id)); 608 608 } 609 609 … … 619 619 620 620 // 現在のカテゴリ情報を取得 621 $arrCurrentCat = $objQuery->select( "product_id, category_id, rank",621 $arrCurrentCat = $objQuery->select('product_id, category_id, rank', 622 622 'dtb_product_categories', 623 "product_id = ?",623 'product_id = ?', 624 624 array($product_id)); 625 625 … … 739 739 $sqlval['create_date'] = 'CURRENT_TIMESTAMP'; 740 740 $sqlval['product_count'] = (string)$arrNew[$cid]; 741 if ($sqlval['product_count'] == "") {741 if ($sqlval['product_count'] =='') { 742 742 $sqlval['product_count'] = (string)'0'; 743 743 } … … 773 773 $arrval = array(); 774 774 list($tmp_where, $tmp_arrval) = $this->sfGetCatWhere($category_id); 775 if ($tmp_where != "") {776 $sql_where_product_ids = "product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")";775 if ($tmp_where != '') { 776 $sql_where_product_ids = 'product_id IN (SELECT product_id FROM dtb_product_categories WHERE ' . $tmp_where . ')'; 777 777 $arrval = array_merge((array)$tmp_arrval, (array)$tmp_arrval); 778 778 } else { … … 795 795 $sqlval['create_date'] = 'CURRENT_TIMESTAMP'; 796 796 $sqlval['product_count'] = $count; 797 if ($sqlval['product_count'] == "") {797 if ($sqlval['product_count'] =='') { 798 798 $sqlval['product_count'] = (string)'0'; 799 799 } … … 930 930 $arrRet = SC_Helper_DB_Ex::sfGetChildrenArray('dtb_category', 'parent_category_id', 'category_id', $category_id); 931 931 932 $where = "category_id IN (". implode(',', array_fill(0, count($arrRet), '?')) . ")";932 $where = 'category_id IN (' . implode(',', array_fill(0, count($arrRet), '?')) . ")"; 933 933 934 934 return array($where, $arrRet); … … 948 948 $objQuery =& SC_Query_Ex::getSingletonInstance(); 949 949 $col = "$keyname, $valname"; 950 $objQuery->setWhere( "del_flg = 0");951 $objQuery->setOrder( "rank DESC");950 $objQuery->setWhere('del_flg = 0'); 951 $objQuery->setOrder('rank DESC'); 952 952 $arrList = $objQuery->select($col, $table, $where, $arrVal); 953 953 $count = count($arrList); … … 969 969 * @return void 970 970 */ 971 function sfRankUp($table, $colname, $id, $andwhere = "") {971 function sfRankUp($table, $colname, $id, $andwhere = '') { 972 972 $objQuery =& SC_Query_Ex::getSingletonInstance(); 973 973 $objQuery->begin(); 974 974 $where = "$colname = ?"; 975 if ($andwhere != "") {975 if ($andwhere != '') { 976 976 $where.= " AND $andwhere"; 977 977 } … … 983 983 if ($rank < $maxrank) { 984 984 // ランクが一つ上のIDを取得する。 985 $where = "rank = ?";986 if ($andwhere != "") {985 $where = 'rank = ?'; 986 if ($andwhere != '') { 987 987 $where.= " AND $andwhere"; 988 988 } … … 991 991 // ランク入れ替えの実行 992 992 $sqlup = "UPDATE $table SET rank = ? WHERE $colname = ?"; 993 if ($andwhere != "") {993 if ($andwhere != '') { 994 994 $sqlup.= " AND $andwhere"; 995 995 } … … 1009 1009 * @return void 1010 1010 */ 1011 function sfRankDown($table, $colname, $id, $andwhere = "") {1011 function sfRankDown($table, $colname, $id, $andwhere = '') { 1012 1012 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1013 1013 $objQuery->begin(); 1014 1014 $where = "$colname = ?"; 1015 if ($andwhere != "") {1015 if ($andwhere != '') { 1016 1016 $where.= " AND $andwhere"; 1017 1017 } … … 1022 1022 if ($rank > 1) { 1023 1023 // ランクが一つ下のIDを取得する。 1024 $where = "rank = ?";1025 if ($andwhere != "") {1024 $where = 'rank = ?'; 1025 if ($andwhere != '') { 1026 1026 $where.= " AND $andwhere"; 1027 1027 } … … 1030 1030 // ランク入れ替えの実行 1031 1031 $sqlup = "UPDATE $table SET rank = ? WHERE $colname = ?"; 1032 if ($andwhere != "") {1032 if ($andwhere != '') { 1033 1033 $sqlup.= " AND $andwhere"; 1034 1034 } … … 1049 1049 * @return void 1050 1050 */ 1051 function sfMoveRank($tableName, $keyIdColumn, $keyId, $pos, $where = "") {1051 function sfMoveRank($tableName, $keyIdColumn, $keyId, $pos, $where = '') { 1052 1052 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1053 1053 $objQuery->begin(); 1054 1054 1055 1055 // 自身のランクを取得する 1056 if ($where != "") {1056 if ($where != '') { 1057 1057 $getWhere = "$keyIdColumn = ? AND " . $where; 1058 1058 } else { … … 1073 1073 1074 1074 //入れ替え先の順位が入れ換え元の順位より大きい場合 1075 if($position > $rank) $term = "rank - 1";1075 if($position > $rank) $term = 'rank - 1'; 1076 1076 1077 1077 //入れ替え先の順位が入れ換え元の順位より小さい場合 1078 if($position < $rank) $term = "rank + 1";1078 if($position < $rank) $term = 'rank + 1'; 1079 1079 1080 1080 // XXX 入れ替え先の順位が入れ替え元の順位と同じ場合 … … 1083 1083 // 指定した順位の商品から移動させる商品までのrankを1つずらす 1084 1084 $sql = "UPDATE $tableName SET rank = $term WHERE rank BETWEEN ? AND ?"; 1085 if ($where != "") {1085 if ($where != '') { 1086 1086 $sql.= " AND $where"; 1087 1087 } … … 1092 1092 // 指定した順位へrankを書き換える。 1093 1093 $sql = "UPDATE $tableName SET rank = ? WHERE $keyIdColumn = ? "; 1094 if ($where != "") {1094 if ($where != '') { 1095 1095 $sql.= " AND $where"; 1096 1096 } … … 1113 1113 * @return void 1114 1114 */ 1115 function sfDeleteRankRecord($table, $colname, $id, $andwhere = "",1115 function sfDeleteRankRecord($table, $colname, $id, $andwhere = '', 1116 1116 $delete = false) { 1117 1117 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 1119 1119 // 削除レコードのランクを取得する。 1120 1120 $where = "$colname = ?"; 1121 if ($andwhere != "") {1121 if ($andwhere != '') { 1122 1122 $where.= " AND $andwhere"; 1123 1123 } … … 1135 1135 1136 1136 // 追加レコードのランクより上のレコードを一つずらす。 1137 $where = "rank > ?";1138 if ($andwhere != "") {1137 $where = 'rank > ?'; 1138 if ($andwhere != '') { 1139 1139 $where.= " AND $andwhere"; 1140 1140 } … … 1157 1157 $col = $col_name; 1158 1158 $len = count($arrId); 1159 $where = "";1159 $where = ''; 1160 1160 1161 1161 for ($cnt = 0; $cnt < $len; $cnt++) { 1162 if ($where == "") {1162 if ($where == '') { 1163 1163 $where = "$id_name = ?"; 1164 1164 } else { … … 1243 1243 * @return bool レコードが存在する場合 true 1244 1244 */ 1245 function sfIsRecord($table, $col, $arrval, $addwhere = "") {1246 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1247 $arrCol = preg_split( "/[, ]/", $col);1248 1249 $where = "del_flg = 0";1250 1251 if ($addwhere != "") {1245 function sfIsRecord($table, $col, $arrval, $addwhere = '') { 1246 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1247 $arrCol = preg_split('/[, ]/', $col); 1248 1249 $where = 'del_flg = 0'; 1250 1251 if ($addwhere != '') { 1252 1252 $where.= " AND $addwhere"; 1253 1253 } 1254 1254 1255 1255 foreach ($arrCol as $val) { 1256 if ($val != "") {1257 if ($where == "") {1256 if ($val != '') { 1257 if ($where == '') { 1258 1258 $where = "$val = ?"; 1259 1259 } else { … … 1264 1264 $ret = $objQuery->get($col, $table, $where, $arrval); 1265 1265 1266 if ($ret != "") {1266 if ($ret != '') { 1267 1267 return true; 1268 1268 } … … 1277 1277 */ 1278 1278 function sfCountMaker($objQuery) { 1279 $sql = "";1279 $sql = ''; 1280 1280 1281 1281 //テーブル内容の削除 1282 $objQuery->query( "DELETE FROM dtb_maker_count");1282 $objQuery->query('DELETE FROM dtb_maker_count'); 1283 1283 1284 1284 //各メーカーの商品数を数えて格納 1285 $sql = " INSERT INTO dtb_maker_count(maker_id, product_count, create_date) ";1286 $sql .= " SELECT T1.maker_id, count(T2.maker_id), CURRENT_TIMESTAMP ";1287 $sql .= " FROM dtb_maker AS T1 LEFT JOIN dtb_products AS T2";1288 $sql .= " ON T1.maker_id = T2.maker_id ";1289 $sql .= " WHERE T2.del_flg = 0 AND T2.status = 1 ";1290 $sql .= " GROUP BY T1.maker_id, T2.maker_id ";1285 $sql = ' INSERT INTO dtb_maker_count(maker_id, product_count, create_date) '; 1286 $sql .= ' SELECT T1.maker_id, count(T2.maker_id), CURRENT_TIMESTAMP '; 1287 $sql .= ' FROM dtb_maker AS T1 LEFT JOIN dtb_products AS T2'; 1288 $sql .= ' ON T1.maker_id = T2.maker_id '; 1289 $sql .= ' WHERE T2.del_flg = 0 AND T2.status = 1 '; 1290 $sql .= ' GROUP BY T1.maker_id, T2.maker_id '; 1291 1291 $objQuery->query($sql); 1292 1292 } … … 1302 1302 function sfGetMakerId($product_id, $maker_id = 0, $closed = false) { 1303 1303 if ($closed) { 1304 $status = "";1304 $status = ''; 1305 1305 } else { 1306 $status = "status = 1";1306 $status = 'status = 1'; 1307 1307 } 1308 1308 … … 1315 1315 } else if (SC_Utils_Ex::sfIsInt($product_id) && $product_id != 0 && $this->sfIsRecord('dtb_products','product_id', $product_id, $status)) { 1316 1316 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1317 $where = "product_id = ?";1317 $where = 'product_id = ?'; 1318 1318 $maker_id = $objQuery->getCol('maker_id', 'dtb_products', "product_id = ?", array($product_id)); 1319 1319 $this->g_maker_id = $maker_id; … … 1335 1335 * @return array カテゴリツリーの配列 1336 1336 */ 1337 function sfGetMakerList($addwhere = "", $products_check = false) {1338 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1339 $where = "del_flg = 0";1340 1341 if ($addwhere != "") {1337 function sfGetMakerList($addwhere = '', $products_check = false) { 1338 $objQuery =& SC_Query_Ex::getSingletonInstance(); 1339 $where = 'del_flg = 0'; 1340 1341 if ($addwhere != '') { 1342 1342 $where.= " AND $addwhere"; 1343 1343 } 1344 1344 1345 $objQuery->setOption( "ORDER BY rank DESC");1345 $objQuery->setOption('ORDER BY rank DESC'); 1346 1346 1347 1347 if ($products_check) { 1348 $col = "T1.maker_id, name";1349 $from = "dtb_maker AS T1 LEFT JOIN dtb_maker_count AS T2 ON T1.maker_id = T2.maker_id";1350 $where .= " AND product_count > 0";1348 $col = 'T1.maker_id, name'; 1349 $from = 'dtb_maker AS T1 LEFT JOIN dtb_maker_count AS T2 ON T1.maker_id = T2.maker_id'; 1350 $where .= ' AND product_count > 0'; 1351 1351 } else { 1352 $col = "maker_id, name";1352 $col = 'maker_id, name'; 1353 1353 $from = 'dtb_maker'; 1354 1354 }
Note: See TracChangeset
for help on using the changeset viewer.