Forum Moderators: coopster

Message Too Old, No Replies

looping with the checkbox base on FolderID

         

nanat

8:52 am on May 22, 2009 (gmt 0)

10+ Year Member



this Code is my query result all uploaded files..

$rdata .= '<tr><td nowrap=nowrap><b>Filename</b></td><td nowrap=nowrap><b>Date Posted</b></td><td><b nowrap=nowrap>Proponent</b></td><td nowrap=nowrap><b>Date Expiration</b></td></tr>';
for ($i = 0; $i < $limit; $i++)
{

$MID = mssql_result($result, $i, "m_folderid");
$Finame = mssql_result($result, $i, "DocTitle");
$Date = mssql_result($result, $i, "Date");
$Pname = mssql_result($result, $i, "Proponent");
$edate = mssql_result($result, $i, "EffictiveDate");

if(($i % 2) == 0)
{
$css ='bgcolor= "#E4E4E4"';
}
else
{
$css ='';
}

$rdata .= '<tr '.$css.'> <td nowrap=nowrap>'.$Finame.'</td><td nowrap=nowrap>'.$Date.'</td><td nowrap=nowrap>'.$Pname.'</td>
<td nowrap=nowrap>'.$edate.'</td><td><INPUT TYPE=CHECKBOX NAME="check" value='.$MID.'></td></tr>';
}

$rdata .= '<tr><td><INPUT TYPE=SUBMIT VALUE="submit" name="uploadME">';

i want to limit each users base the number of checkbox that i selected my question is how can i insert the data that i select base on my code?


if ((isset($_SESSION["UID"])) && ($_SESSION["UID"] != ''))
{
if(isset($_POST["uploadME"]))
{

$Finame = $_POST["check"];
$userid = $_SESSION["UID"];
echo $Finame;

$result = "insert into Conformation (userid, m_folderID) Values ('".$userid."', '".$Finame."')";

if($result)
{
echo '<script type="text/javascript">
alert(" user Downloadable add");
location.href="index.php?option=DownloadList&id='.$userid.'";
</script>';

}
else
{
echo '<script type="text/javascript">
alert("Request not send this time!");
location.href="index.php?option=AddUser";
</script>';

}
}
else
{
echo '<script type="text/javascript">
alert("Direct access not allowed!");
history.go(-1);
</script>';
}

i really need help tnx guys :D

nanat

12:16 am on May 26, 2009 (gmt 0)

10+ Year Member



to sad nobody posted T_T.. neeeeeeeeeeeeedddd help T_T