| Revision 4650,
354 bytes
checked in by kakinaka, 20 years ago
(diff) |
|
blank
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | include("./DB.php"); // PEAR ¤Î DB ¥¯¥é¥¹¤òÆÉ¤ß¹þ¤à |
|---|
| 3 | |
|---|
| 4 | print("start"); |
|---|
| 5 | |
|---|
| 6 | $dsn = "mysql://eccube_db_user:[email protected]/eccube_db"; |
|---|
| 7 | if(($db = DB::connect($dsn)) == 0){ |
|---|
| 8 | print "¤ª¤ª¤Ã¤È¡ª¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÀܳ¤Ç¤¤Þ¤»¤ó¡£"; |
|---|
| 9 | } |
|---|
| 10 | |
|---|
| 11 | $result = $db->query("select * from test"); |
|---|
| 12 | while($row = $result->fetchRow()){ |
|---|
| 13 | print_r($row); |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | print("end"); |
|---|
| 17 | |
|---|
| 18 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.