From 9b4cdb23401bc6f405ff731618110245c9d55b8e Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 28 Nov 2006 16:15:32 +0000 Subject: typo fix. --- demos/quickstart/protected/pages/Database/DAO.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos') diff --git a/demos/quickstart/protected/pages/Database/DAO.page b/demos/quickstart/protected/pages/Database/DAO.page index 0f60b0ef..44da10d5 100644 --- a/demos/quickstart/protected/pages/Database/DAO.page +++ b/demos/quickstart/protected/pages/Database/DAO.page @@ -150,7 +150,7 @@ $dataReader=$connection->createCommand($sql)->query(); // bind the 1st column (username) with the $username variable $dataReader->bindColumn(1,$username); // bind the 2nd column (email) with the $email variable -$dataReader->bindParameter(2,$email); +$dataReader->bindColumn(2,$email); while($dataReader->read()!==false) { // $username and $email contain the username and email in the current row -- cgit v1.2.3