Re: [PHP] download not working

2005-12-30 Thread Richard Lynch
On Wed, December 28, 2005 6:10 am, Ross wrote: > $query= "SELECT * FROM publications WHERE alphabet='a'"; > > $result= mysql_query($query); >while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ > > $row['pdf_size'] = $row['pdf_size']/ 1024; > $row['pdf_size']= number_format($row['pdf

Re: [PHP] download not working

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 01:03:55PM -, Ross wrote: > The pdf is fine, there are no errors . All I get is a small (130byte) pdf > file which is corrupt when I try and open it. Open the file in notepad and look at the 130 bytes, it probably will give you a clue. > > Thanks, > > R. > > "Joche

RE: [PHP] download not working

2005-12-28 Thread Albert
> Ross wrote: >> $query= "SELECT * FROM publications WHERE alphabet='a'"; >> >> $result= mysql_query($query); >>while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ >> >> $row['pdf_size'] = $row['pdf_size']/ 1024; >> $row['pdf_size']= number_format($row['pdf_size'], 0); >> $size= $r

RE: [PHP] download not working

2005-12-28 Thread Albert
Ross wrote: > The pdf is fine, there are no errors . All I get is a small (130byte) pdf > file which is corrupt when I try and open it. >From the code I gather you are saving the uploaded file in the database. 1 - What field type are you using for this? 2 - Are you using some form of encoding (

Re: [PHP] download not working

2005-12-28 Thread Ross
The pdf is fine, there are no errors . All I get is a small (130byte) pdf file which is corrupt when I try and open it. Thanks, R. "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > are people supposed to smell what is not working? > do you get any errors? is it possib

Re: [PHP] download not working

2005-12-28 Thread Jochem Maas
are people supposed to smell what is not working? do you get any errors? is it possible the PDF was corrupt when you uploaded it? Ross wrote: working form this example http://www.php-mysql-tutorial.com/php-mysql-upload.php my code is as follows, all I get is a corrupt pdf file. $query= "

[PHP] download not working

2005-12-28 Thread Ross
working form this example http://www.php-mysql-tutorial.com/php-mysql-upload.php my code is as follows, all I get is a corrupt pdf file. $query= "SELECT * FROM publications WHERE alphabet='a'"; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){