PEAK XOOPS - Trouble in using mysql_fetch_object() under PHP 5.0.5 in englishin japanese

Archive | RSS |
PHP
PHP : Trouble in using mysql_fetch_object() under PHP 5.0.5
Poster : GIJOE on 2005-12-02 01:00:00 (13479 reads)


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 ) ;

0 comments
Printer friendly page Send this story to a friend

Comments list

Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!