source: temp/trunk/html/test/kakinaka/mysql.php @ 4650

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
2include("./DB.php"); // PEAR ¤Î DB ¥¯¥é¥¹¤òÆÉ¤ß¹þ¤à
3
4print("start");
5
6$dsn = "mysql://eccube_db_user:[email protected]/eccube_db";
7if(($db = DB::connect($dsn)) == 0){
8  print "¤ª¤ª¤Ã¤È¡ª¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÀܳ¤Ç¤­¤Þ¤»¤ó¡£";
9}
10
11$result = $db->query("select * from test");
12while($row = $result->fetchRow()){
13    print_r($row);
14}
15
16print("end");
17
18?>
Note: See TracBrowser for help on using the repository browser.