 |
จะ select ข้อมูลตารางใน oracle มาดู แต่ขึ้นหน้าขาวๆ ครับ ช่วยดูโค้ดให้ผมทีครับ |
|
 |
|
|
 |
 |
|
Oracle ใช้แบบนี้เหรอครับ
Code (PHP)
$conn1->Connect('localhost', 'system', '1234', 'article'); //ตรง localhost กับ article ผมไม่แน่ใจว่าถูกไหม๋
$conn1->Execute("SET NAMES 'utf8'");
|
 |
 |
 |
 |
Date :
2011-09-04 21:53:14 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
# with adodb 5.06 or 4.991 and later
$conn->Connect('192.168.0.1', 'scott', 'tiger', "SID=$SID");
# OR with all versions of ADOdb
$conn->connectSID = true;
$conn->Connect('192.168.0.1', 'scott', 'tiger', $SID);
แบบนี้น่ะครับ
|
 |
 |
 |
 |
Date :
2011-09-05 09:24:40 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อีกตัวครับ
Code (PHP)
$cstr = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=$host)(PORT=$port))
(CONNECT_DATA=(SID=$sid)))";
$conn->Connect($cstr, 'scott', 'tiger');
|
 |
 |
 |
 |
Date :
2011-09-05 09:27:54 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|