Blame view

account/form.php 426 Bytes
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
  <?
  	// Ïîäêëþ÷åíèå
  	include_once($_SERVER['DOCUMENT_ROOT']."/config/config.php"); 
  	include_once($_SERVER['DOCUMENT_ROOT']."/account/func/func.php");
      
      $sql="SELECT DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(birthday)), '%Y')+0 AS age FROM zlo_users_info";
      $result = mysql_query($sql) or die(mysql_error());
      if (mysql_affected_rows()!=0) {
          $row=mysql_fetch_assoc($result);
          print_r($row);
      }