Changeset 4715 for temp/trunk/data/class
- Timestamp:
- 2006/09/14 10:52:35 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_DbConn.php (modified) (2 diffs)
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);
Note: See TracChangeset
for help on using the changeset viewer.
