diff --git a/reference/msql/reference.xml b/reference/msql/reference.xml index 681a87ae65..b72902b2a9 100644 --- a/reference/msql/reference.xml +++ b/reference/msql/reference.xml @@ -1,5 +1,5 @@ - + mSQL Functions mSQL @@ -43,8 +43,8 @@ $link = msql_connect('localhost', 'username', 'password') or die('Could not connect : ' . msql_error($link)); -msql_select_db('database') - or die('Could not select database', $link); +msql_select_db('database', $link) + or die('Could not select database'); /* Issue SQL query */ $query = 'SELECT * FROM my_table'; diff --git a/reference/sesam/functions/sesam-query.xml b/reference/sesam/functions/sesam-query.xml index 3db87f2b6e..a20b3c6b43 100644 --- a/reference/sesam/functions/sesam-query.xml +++ b/reference/sesam/functions/sesam-query.xml @@ -1,5 +1,5 @@ - + @@ -64,7 +64,7 @@ if (!sesam_connect("phonedb", "demo", "otto")) $result = sesam_query("select * from phone"); if (!$result) { $err = sesam_diagnostic(); - die $err["errmsg"]); + die ($err["errmsg"]); } echo "\n"; // Add title header with column names above the result: diff --git a/reference/xslt/functions/xslt-process.xml b/reference/xslt/functions/xslt-process.xml index df34d48c85..b9f8832f54 100644 --- a/reference/xslt/functions/xslt-process.xml +++ b/reference/xslt/functions/xslt-process.xml @@ -1,5 +1,5 @@ - + @@ -156,7 +156,7 @@ if ($result) { echo "\n"; } else { echo "Sorry, sample.xml could not be transformed by sample.xsl into"; - echo " the \$result variable the reason is that " . xslt_error($xh) . + echo " the \$result variable the reason is that " . xslt_error($xh); echo " and the error code is " . xslt_errno($xh); } xslt_free($xh);