php
1<?php 2try { 3 // PDO()コンストラクタ インスタンス初期化 4 $pdo = new PDO ( 'mysql:host=localhost;dbname=takahashi1;charset=utf8', 'takahashi', 'takahashi' ); 5} catch ( PDOException $exception ) { 6 print "接続エラー:{$exception->getMessage()}"; 7} 8?>
の
{$exception->getMessage()}
の
{}この括弧の意味が解りません。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/22 04:43
2017/03/22 04:49