Changeset 4715
- Timestamp:
- 2006/09/14 10:52:35 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 3 edited
-
data/class/SC_DbConn.php (modified) (2 diffs)
-
data/lib/slib.php (modified) (1 diff)
-
html/admin/home.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_DbConn.php
r4714 r4715 69 69 70 70 function getRow($n, $arr = ""){ 71 71 72 // mysql¤Î¾ì¹ç¤Ë¤Ï¥Ó¥å¡¼É½¤òÊÑ´¹¤¹¤ë 73 if (DB_TYPE == "mysql") { 74 $n = sfChangeView($n); 75 } 76 72 77 if ( $arr ) { 73 78 $result = $this->conn->getRow($n, $arr); … … 84 89 // SELECTʸ¤Î¼Â¹Ô·ë²Ì¤òÁ´¤Æ¼èÆÀ 85 90 function getAll($n, $arr = ""){ 91 92 // mysql¤Î¾ì¹ç¤Ë¤Ï¥Ó¥å¡¼É½¤òÊÑ´¹¤¹¤ë 93 if (DB_TYPE == "mysql") { 94 $n = sfChangeView($n); 95 } 96 86 97 if(PEAR::isError($this->conn)) { 87 98 sfErrorHeader("DB¤Ø¤ÎÀܳ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:" . $this->dsn); 88 99 return 0; 89 100 } 90 101 91 102 if ( $arr ){ 92 103 $result = $this->conn->getAll($n, $arr, DB_FETCHMODE_ASSOC); -
temp/trunk/data/lib/slib.php
r4714 r4715 2343 2343 function sfChangeView($sql){ 2344 2344 global $arrView; 2345 2345 2346 2346 $changesql = strtr($sql,$arrView); 2347 2347 2348 2348 return $changesql; 2349 2350 2349 } 2351 2350 -
temp/trunk/html/admin/home.php
r4714 r4715 17 17 // ǧ¾Ú²ÄÈݤÎȽÄê 18 18 sfIsSuccess($objSess); 19 20 sfprintr(sfChangeView("SELECT * FROM vw_products_nonclass"));21 19 22 20 // ¸½ºß¤Î²ñ°÷¿ô
Note: See TracChangeset
for help on using the changeset viewer.
