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

Revision 4663, 384 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]/eccube_db";
7
8print($dsn."<br>");
9
10if(($db = DB::connect($dsn)) == 0){
11  print "¤ª¤ª¤Ã¤È¡ª¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÀܳ¤Ç¤­¤Þ¤»¤ó¡£";
12}
13
14$result = $db->query("select * from test");
15while($row = $result->fetchRow()){
16    print_r($row);
17}
18
19print("end");
20
21?>
Note: See TracBrowser for help on using the repository browser.