Changeset 4709 for temp/trunk/html/test/kakinaka/mysql.php
- Timestamp:
- 2006/09/14 10:15:27 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/test/kakinaka/mysql.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/kakinaka/mysql.php
r4665 r4709 5 5 6 6 $dsn = "mysql://eccube_db_user:[email protected]/eccube_db"; 7 7 /* 8 8 print($dsn."<br>"); 9 9 … … 15 15 print_r($row); 16 16 } 17 */ 18 19 $sql = "SELECT * FROM dtb_baseinfo WHERE"; 20 $sql = getMailAddress($sql); 21 print_r($sql); 17 22 18 23 print("end"); 19 24 25 // ʸ»úÎó¤ÎÃæ¤Ë¸ºß¤¹¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î¤ß¤ò¼èÆÀ¤·¡¢ÇÛÎó¤È¤·¤ÆÊÖ¤¹ 26 function getMailAddress($str){ 27 $arrMail = array(); 28 preg_match_all("/FROM+([a-zA-Z0-9_\.\+\?-]+WHERE+)/", $str, $arrMail); 29 return $arrMail[0]; 30 } 31 20 32 ?>
Note: See TracChangeset
for help on using the changeset viewer.
