diff --git a/faq/html.xml b/faq/html.xml index 3ec705d5c4..d15e76ceef 100644 --- a/faq/html.xml +++ b/faq/html.xml @@ -315,7 +315,7 @@ if (isset($_GET['width']) AND isset($_GET['height'])) { // -- post variables will need to handled differently) echo "\n"; exit(); diff --git a/reference/mysql_xdevapi/examples.xml b/reference/mysql_xdevapi/examples.xml index d3c3ac0881..d9c96d008d 100644 --- a/reference/mysql_xdevapi/examples.xml +++ b/reference/mysql_xdevapi/examples.xml @@ -108,7 +108,7 @@ array(4) { find()->execute(); foreach ($result as $doc) { - echo "${doc["name"]} is a ${doc["job"]}.\n"; + echo "{$doc["name"]} is a {$doc["job"]}.\n"; } ?> ]]> diff --git a/reference/pgsql/functions/pg-send-query-params.xml b/reference/pgsql/functions/pg-send-query-params.xml index f825ec65f8..4d51bc4649 100644 --- a/reference/pgsql/functions/pg-send-query-params.xml +++ b/reference/pgsql/functions/pg-send-query-params.xml @@ -101,10 +101,10 @@ // Using parameters. Note that it is not necessary to quote or escape // the parameter. pg_send_query_params($dbconn, 'select count(*) from authors where city = $1', array('Perth')); - + // Compare against basic pg_send_query usage $str = pg_escape_string('Perth'); - pg_send_query($dbconn, "select count(*) from authors where city = '${str}'"); + pg_send_query($dbconn, "select count(*) from authors where city = '{$str}'"); ?> ]]>