note 104132 added to ref.pdo-pgsql.connection

From: Date: Wed, 25 May 2011 14:56:32 +0000
Subject: note 104132 added to ref.pdo-pgsql.connection
Groups: php.notes 
Request: Send a blank email to php-notes+get-180028@lists.php.net to get a copy of this message
@tmairs : That's not PHP, PDO or PGSQL. You used simple quotes, so variables are not evaluated. Correct syntax should be <?php $dbh = new PDO("pgsql:dbname=$dbname; host=$host; username=$username; password=$password"); // or concatenate ?> and it works. ---- Server IP: 89.31.146.176 Probable Submitter: 213.245.69.62 ---- Manual Page -- http://www.php.net/manual/en/ref.pdo-pgsql.connection.php Edit -- https://master.php.net/note/edit/104132 Del: integrated -- https://master.php.net/note/delete/104132/integrated Del: useless -- https://master.php.net/note/delete/104132/useless Del: bad code -- https://master.php.net/note/delete/104132/bad+code Del: spam -- https://master.php.net/note/delete/104132/spam Del: non-english -- https://master.php.net/note/delete/104132/non-english Del: in docs -- https://master.php.net/note/delete/104132/in+docs Del: other reasons-- https://master.php.net/note/delete/104132 Reject -- https://master.php.net/note/reject/104132 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180028) next »