Re: help - outputting a jpeg

From: Date: Thu, 31 Aug 2006 07:26:08 +0000
Subject: Re: help - outputting a jpeg
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241264@lists.php.net to get a copy of this message
On 8/29/06, Ross <ross@aztechost.com> wrote:
I just get all the binary data output <? include("includes/config.php"); $link = mysql_connect($host, $user, $password) or die ('somethng went wrong:' .mysql_error() ); mysql_select_db($dbname, $link) or die ('somethng went wrong, DB error:' .mysql_error() ); $query = "SELECT DISTINCT gallery FROM thumbnails"; $result = @mysql_query( $query,$link );
and also dont use @ to suppress errors it will cause your more problems, turn off display_errors and keep error_reportlng at minimum E_WARNING, and log the errors to a file. Curt.

« previous php.general (#241264) next »