Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $host = ""; // MySQL Host
- $db = ""; // Database name
- $username = ""; // MySQL User
- $password = ""; // Password
- $select=@mysql_select_db($db,$connect);
- $sql=mysql_query("select * from user Where uuid LIKE '%$unid%'");
- $resultnum = mysql_num_rows($sql);
- if($resultnum <= 0){
- }else{
- $sql = mysql_query("SELECT * FROM user WHERE uuid ='$unid'");
- while($row = mysql_fetch_object($sql)){
- $nextup = $row->nextup;
- $start_date = new DateTime('@0');
- $since_start = $start_date->diff(new DateTime("@$nextup"));
- $date1 = new DateTime('@0');
- $date2 = new DateTime("@$nextup");
- $diff = $date1->diff($date2, true);
- echo $diff->format('%m month %d days %H hours %I minutes %S seconds');}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement