Trouble in using mysql_fetch_object() under PHP 5.0.5

Date 2005-12-02 01:00:00 | Category: PHP


1:    $result = mysql_query( "SELECT ''" , $conn ) ;
2:    $obj = mysql_fetch_object( $result ) ;


in englishin japanese
This cause no errors in PHP <= 5.0.4.
This cause a fatal error in PHP 5.0.5 in line 2.

This should be like this:

1:    $result = mysql_query( "SELECT '' AS tmp_name" , $conn ) ;
2:    $obj = mysql_fetch_object( $result ) ;





You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=74