Re: Syntax Eyes
| From: | Clayton Dukes | Date: | Wed, 25 Jul 2001 03:53:11 +0000 |
| Subject: | Re: Syntax Eyes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59485@lists.php.net to get a copy of this message | ||
Okay, I figured out the @header will actually reset the headers, but it
still just prints the raw data to the screen instead of the actual image.
How can I fix this?
echo "</TD><TD NOWRAP ALIGN=\"LEFT\"
BGCOLOR=\"#C8CCC8\">";
if($db->f("bin_data"))
{
/*
This doesn't help...
@header ("Content-disposition: filename=".$filename);
@header( "Content-type: image/jpeg" );
*/
$db->p("bin_data");
} else {
echo "No Picture Available";
-Clayton
----- Original Message -----
From: "Matthew Loff" <matt@willetts.com>
To: "'Clayton Dukes'" <cdukes@cdukes.com>;
"'Php-General'"
<php-general@lists.php.net>
Sent: Tuesday, July 24, 2001 11:20 PM
Subject: RE: [PHP] Syntax Eyes
>
> Output control functions will let you buffer the output, and you can
> decide to send a header instead of flushing the buffer to the client:
>
> http://www.php.net/manual/en/ref.outcontrol.php
>
> ob_start() & flush() should accomplish this all for you.
>
>
> -----Original Message-----
> From: Clayton Dukes [mailto:cdukes@cdukes.com]
> Sent: Tuesday, July 24, 2001 11:14 PM
> To: Php-General
> Subject: Re: [PHP] Syntax Eyes
>
>
> Nevermind, I got it...
>
> Now, how do you reset header information if you need to redclare the
> header(); ????
>
> ie:
> Warning: Cannot add header information - headers already sent by (output
> started at ...
>
>
> -Clayton
>
>
> ----- Original Message -----
> From: "Clayton Dukes" <cdukes@cdukes.com>
> To: "Php-General" <php-general@lists.php.net>
> Sent: Tuesday, July 24, 2001 10:54 PM
> Subject: [PHP] Syntax Eyes
>
>
> Hey, I need a set of extra eyes:
>
> $res_id = mysql_query ("update contacts_data set (
> description='$description',
> data='$data',
> filename='$input_file_name',
> filesize='$input_file_size',
> filetype='$input_file_type'
> where uid='$uid'
> )");
>
> Can someone tell me why this is yeilding:
>
> MySQL Error: (1064) You have an error in your SQL syntax near '(
> 'Clayton Dukes', 'ÿØÿà\0JFIF\0\0H\0H\0\0ÿÛ\0C\0' at line 1
>
>
> ???
> TIA!
> ----------------------
> Clayton Dukes
> CCNA, CCDA, CCDP, CCNP
> (c) 904.477.7825
> (h) 904.292.1881
> Download Free Essays, Term Papers and Cisco Training from
> http://www.gdd.net
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net To
> contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net