Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-12-2004, 07:49 AM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
Getting binary data from MySQL to download into a zip

Sorry bout the long name...

Well anyways, now since ive got hte whole displaying an imge thing working, how would i get it so pretty much the same works with a zip file so the person (upon clicking hte link) will get the zip file to download?

This is what i have so far and it just gives me a dl.php filled with the binary data lol...

PHP Code:
 $query "SELECT * FROM mapdb_maps WHERE mid='$id'";
    
$result mysql_query($query) or die(mysql_error());

    while(
$row mysql_fetch_array($result)){
    
$data $row['file'];
    
    }
    
    
header("Content-type: application/x-zip");
    echo 
$data
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any way to zip your maps without buying winzip?????? EMPTY-07 Delta Force 7 03-04-2007 12:47 PM
MIME TYPE for zip files? BeBop Tech Support 5 12-12-2004 10:04 PM
ZIP submission sizes. zza1pqx Feedback / Novahq.net Support 0 09-23-2004 11:18 AM
making a New face .zip Hellfighter Feedback / Novahq.net Support 6 09-10-2003 08:18 PM
Revised SwissImpressions.zip EL_Bastardo UFP Feedback / Novahq.net Support 1 05-25-2002 06:41 AM


All times are GMT -5. The time now is 01:07 PM.




Powered by vBulletin®