Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*Next Level*/
- $host = "localhost"; // MySQL Host
- $db = "rank2"; // Database name
- $username = "root"; // MySQL User
- $password = "pass"; // Password
- $connect=@mysql_connect($host,$username,$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');}
- }
- ++++++++++++++++++++++++++++++++++++
- please check line 9,13
- what is wrong
- what is wrong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement