|
mysql_result is perfectly acceptable. Whenever you get an error such as that it means that your query was rejected by the server. You need to debug and figure out why, I would suggest using print_r( $query_handle ) or mysql_error( ) for more information.
In this case it looks to simply be that you forgot to connect to the database server. mysql_connect() is what you want for that.
|