Re: help - outputting a jpeg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/29/06, Ross <ross@xxxxxxxxxxxxx> 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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux