|
|
Ŭ¶ó¿ìµåű×
Javascript PHP ASP CSS html mysql jquery image Mobile API slide °Ô½ÃÆÇ ¸Þ´º
|
|
|
ÇöÀçÁ¢¼ÓÀÚ ¸í |
|
|
|
|
|
|
|
Fasdab ( DB Layer ) 0.10 |
|
|
|
|
¼Ò½ººÐ·ù |
À¥ À¯Æ¿¸®Æ¼ |
|
|
´Ù¿î·Îµå Ƚ¼ö |
470 ȸ |
|
|
|
°£´Ü¼³¸í |
MYSQL°ú PostgreSQLÀ» Áö¿øÇÏ´Â DB_Layer Ŭ·¡½ºÀÔ´Ï´Ù.
|
|
|
|
|
|
==============
¼Ò °³ (INTRO)
==============
ÇöÀç ¹öÀüÀ» ±âÁØÀ¸·Î MYSQL°ú PostgreSQLÀ» Áö¿øÇÏ´Â DB_Layer Ŭ·¡½ºÀÔ´Ï´Ù.
rollback comit µîÀÇ ´ëÇÑ ±â´Éµµ »ç¿ë°¡´ÉÇÏ°Ô Ã³¸®µÇ¾îÁ® ÀÖÀ¸¸ç ´Ù¾çÇÑ ¸â¹öÇÔ¼ö°¡
ÁغñµÇ¾î ÀÖ½À´Ï´Ù. ÇÔ²² ÷ºÎµÈ µµ¿ò¸» ÆÄÀÏ¿¡ ÀÚ¼¼ÇÏ°Ô »ç¿ë¹ý°ú ¼³¸íÀÌ ÁغñµÇ¾î
ÀÖ½À´Ï´Ù.
==============
¶óÀ̼¾½º
==============
LGPL
==============
¼³Ä¡È¯°æ
==============
DB Layer À̹ǷΠDB ¸¦ »ç¿ëÇϴ ȯ°æ¿¡¼
ÇÊ¿äÇÑ ÇÁ·Î±×·¥ÀÔ´Ï´Ù.
=============
¼³ Ä¡
=============
µ¶¸³ÀûÀÎ ÇÁ·Î±×·¥ÀÌ ¾Æ´Ï¹Ç·Î ¼³Ä¡°úÁ¤ÀÌ µû·Î ¾ø°í ÇÁ·Î±×·¥½Ã ÇÊ¿ä¿¡ ÀÇÇØ
require ¹®ÀåÀ̳ª include , require_once µîÀ¸·Î ÀûÀýÈ÷ Æ÷ÇÔ½ÃÄÑ »ç¿ëÇÕ´Ï´Ù.
¾Æ·¡¿Í °°ÀÌ »ç¿ë ÇÏ¸é µË´Ï´Ù. (ÀÚ¼¼ÇÑ ¼³¸íÀº ¼Ò½º¿¡ ÷ºÎµÈ ¼³¸í¹®À» ÂüÁ¶Çϼ¼¿ä)
require_once("fasdab.mysql.php");
$db = new Fasdab("localhost", "username", "password", "database");
$db->query("SELECT age FROM users");
while ($row = $db->row()) {
echo "$row->age
";
}
?>
Handling more than one result set simultaneously:
require_once("fasdab.mysql.php");
$db = new Fasdab("localhost", "username", "password", "database");
$db->query("SELECT id, first_name, last_name FROM users");
while ($row = $db->row()) {
echo "Products bought by $row->first_name $row->last_name:
";
$db->query("SELECT name FROM products WHERE user_id = ``$row->id``", 1);
while ($row_1 = $db->row(1)) {
echo "$row_1->name
";
}
}
?>
ÀÚ·áÃâó http://www.codelib.co.kr
|
|
³×ƼÁð ÀÇ°ß ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.) |
|