/[LeafOK_CVS]/fenglin/bbs/message.inc.php
ViewVC logotype

Diff of /fenglin/bbs/message.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Fri Mar 28 10:36:19 2025 UTC Revision 1.4 by sysadm, Tue Apr 29 11:55:32 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2          function check_new_msg(int $uid, mysqli $db_conn) : int          function check_new_msg(int $uid, mysqli $db_conn) : int
3          {          {
4                  $new_msg = 0;                  $new_msg = 0;
# Line 12  Line 12 
12                          echo("Query message error: " . mysqli_error($db_conn));                          echo("Query message error: " . mysqli_error($db_conn));
13                          return -1;                          return -1;
14                  }                  }
15                    
16                  if ($row = mysqli_fetch_array($rs))                  if ($row = mysqli_fetch_array($rs))
17                  {                  {
18                          $new_msg = $row["msg_count"];                          $new_msg = $row["msg_count"];
19                  }                  }
20    
21                  mysqli_free_result($rs);                                  mysqli_free_result($rs);
22    
23                  return $new_msg;                  return $new_msg;
24          }          }
 ?>  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1