From 22e5ee0001ffb521ebf88b9459330ed28962eca0 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Thu, 22 Jul 2004 13:32:57 +0000 Subject: [PATCH] fix parse errors git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164009 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/msql/reference.xml | 6 +++--- reference/sesam/functions/sesam-query.xml | 4 ++-- reference/xslt/functions/xslt-process.xml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) 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);