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_size'],
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=
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 possible
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 (eg
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= $row['pdf_size'];
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.
Jochem Maas
6 matches
Mail list logo