The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Attachment help
Im workin on something to do with downloads... Im having trouble with it grabbing attachments..
Im using file system not db... this is the code im using... all files are 0 bytes Code:
//Getting attachment if ($vbulletin->input->clean_gpc('g','id',TYPE_UNIT)) { //attachment id $id=intval($vbulletin->GPC['id']); //select the content from the table $get_zip=$db->query_read("SELECT *FROM ".TABLE_PREFIX."attachment where attachmentid=$id"); // print the file while($_zip=$db->fetch_array($get_zip)) { Cheers |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|