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
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
> 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
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 (
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
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= "
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)){
7 matches
Mail list logo