thanks and kiss all
you guys help a lot....:)
i managed it by setting up a flag : msgignoreflag
when usr click the link,the href is linked to
$_server[request]&msgignoreflag
and the php script call the function only if the flag is set :)
my code is like this
with msgignoreflag being the flag and the dec_msgnum the function i
would like to call
function print_body($nomsg = 0) {
global $cookie;
?> <body bgproperties="fixed"> <?php
// if(isset($_GET["msgignoreflag"]) {
if($_GET["msgignoreflag"]==1) {
dec_msgnum($cookie["usernum"]);
}
if( $msgnum = get_msgnum($cookie["usernum"]) && !$nomsg) {
$msg = get_msg($cookie["id"], $msgnum);
?><table width=100% bgcolor=lightyellow>
<tr>
<td valign="top" nowrap="nowrap" width=25%><font
color="green"><?php echo $msg["id"]; ?></font> (<?php
echo ctime2($msg["time"]); ?>): </td>
<td align="left" valign="top" width=50%><?php echo
stripansi($msg["msg"]); ?></td>
<td align="right" valign="top" nowrap="nowrap"
width=15%>
<a href="<?php echo BBSCGI;
?>/bbssndmsg.php?reply=1&uid=<?php echo $msg["id"]; ?>">[回讯息]</a>
</td>
<td align="right" valign="top" nowrap="nowrap"
width=10%>
<a href="<?php echo $_SERVER['REQUEST_URI'];
?>&msgignoreflag=1">[忽略]</a>
</td>
</tr></table><?php
}
}
thanks all you guys again
i appriciate your efforts to help me
kisssssssssss :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---