帮我看看这个代码: <?php require_once ("DB.php"); $dsn = "mysql://localhost/daniel"; $db = DB::connect ($dsn); $result = $db -> query ("select * from student"); while ( $row = $result -> fetchRow()) { echo $row["name"]; } ?> //////////////////error/////////////// PHP Fatal error: Only variables or references can be returned by reference in e:\Develop\php\PEAR\p ear\DB\common.php on line 766 Content-type: text/html X-Powered-By: PHP/5.0.0b2
<?php
require_once ("DB.php"); $dsn = "mysql://localhost/daniel"; $db = DB::connect ($dsn); $result = $db -> query ("select * from student"); while ( $row = $result -> fetchRow())
{
echo $row["name"];
}
?>
//////////////////error///////////////
PHP Fatal error: Only variables or references can be returned by reference in e:\Develop\php\PEAR\p
ear\DB\common.php on line 766
Content-type: text/html
X-Powered-By: PHP/5.0.0b2