質問編集履歴

1

DB接続文字列変更

2022/11/22 05:10

投稿

masaru_08
masaru_08

スコア13

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
  /* --------------------------------------- */
15
15
  /* データベースに接続 */
16
16
  //oci_connect
17
- $conn = oci_connect('PROACTIVE','PROACTIVE',' (DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.21.219)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = PAE2)))');
17
+ $conn = oci_connect('username','password',' (DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ***.***.**.***)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = AAAA)))');
18
18
  if(!$conn){
19
19
  $e = oci_error();
20
20
  trigger_error(htmlentities($e['message'],ENT_QUOTES),E_USER_ERROR);