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

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