note 51951 added to function.pg-prepare

From: Date: Sat, 16 Apr 2005 15:33:23 +0000
Subject: note 51951 added to function.pg-prepare
Groups: php.notes 
Request: Send a blank email to php-notes+get-88085@lists.php.net to get a copy of this message
SQL is often a complicated piece of code by itself, so you may wish put it inside a "here doc." This will help you read it wherever it appears and test it by itself via a command-line or gui client. $sql = <<<SQL SELECT a.foo, b.bar, c.baz FROM table_a a LEFT JOIN table_b b ON ( a.a_id = b.a_id ) JOIN table_c c ON ( b.c_id = c.c_id ) WHERE c.name = $1 SQL; ---- Manual Page -- http://www.php.net/manual/en/function.pg-prepare.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51951 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51951&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51951&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51951&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51951&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51951&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51951&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88085) next »