Jump to content

Need stop/msg at set# of uploads


danjapro

Recommended Posts

 

I need some quick help with this, This is my file upload row loop,

I want to add the if <b>k = 4</b>, then you have reached the maximum upload.

Or something to that Effect.

 

PRetty much only allowing 4-upload per user, before stoping the upload feature..

 

 

row count


       <?php

$k = 4;
//$n=5;
for ($i=0, $n=count( $this->songs ); $i < $n; $i++)
//for ($i=0, $n=count( $this->songs ); $i < $n; $i++)
{
	$song = &$this->songs[$i];
	$checked 	= JHTML::_('grid.id',   $i, $song->id );
	$link_edit = JRoute::_( 'index.php?userid='.$this->xxx->user_id.'&layout=form&id=' . $song->id .'&from=xxx');
	$tick = JHTML::image("images/tick.png",JText::_('Yes'));
	$tick_file = JHTML::image("images/tick.png",JText::_('Yes'),array("title" => $xxx->filename));
	$cross = JHTML::image("images/publish_x.png",JText::_('No'));
         ?>

 

End row count

 

 


<?php
$k = 1 - $k;


}
?>

Link to comment
https://forums.phpfreaks.com/topic/259536-need-stopmsg-at-set-of-uploads/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.