$res=mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/RIR/index.php/panel/%' AND (date >= '".date('Y-m-d',strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59');");
$res=mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/resiliencia/index.php/panel/%' AND (date >= '".date('Y-m-d',strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59');");
$res2=mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/RIR/index.php/panel/%' AND (date >= '".date('Y-m-d',strtotime('-1 week'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59');");
$res2=mysqli_query($conn,"SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/resiliencia/index.php/panel/%' AND (date >= '".date('Y-m-d',strtotime('-1 week'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59');");
//echo mysqli_fetch_array($res)[0].","."SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/RIR/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');";
//echo mysqli_fetch_array($res)[0].","."SELECT COUNT(id) FROM tbl_registro_general WHERE site NOT LIKE '%/resiliencia/index.php/panel/%' AND (date >= '".date('Y-m-d', strtotime('now'))." 00:00:00' AND date <= '".date('Y-m-d', strtotime('now'))." 23:59:59');";
//echo rand(0,100);
//echo rand(0,100);
die();
die();
//$conn->close();
//$conn->close();
...
@@ -298,7 +298,7 @@ class baseDeDatosVisita{
...
@@ -298,7 +298,7 @@ class baseDeDatosVisita{
$dia="";
$dia="";
$diaux="";
$diaux="";
$total=1;
$total=1;
$res=mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site LIKE '%/RIR/index.php/panel/%') AND (date >= '".date('Y-m-d',strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
$res=mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site LIKE '%/resiliencia/index.php/panel/%') AND (date >= '".date('Y-m-d',strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
echo"[";
echo"[";
while($cRow=mysqli_fetch_array($res)){
while($cRow=mysqli_fetch_array($res)){
$a++;
$a++;
...
@@ -325,7 +325,7 @@ class baseDeDatosVisita{
...
@@ -325,7 +325,7 @@ class baseDeDatosVisita{
$dia="";
$dia="";
$diaux="";
$diaux="";
$total=1;
$total=1;
$res=mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site = '/RIR/') AND (date >= '".date('Y-m-d',strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
$res=mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site = '/resiliencia/') AND (date >= '".date('Y-m-d',strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
echo"[";
echo"[";
while($cRow=mysqli_fetch_array($res)){
while($cRow=mysqli_fetch_array($res)){
$a++;
$a++;
...
@@ -352,7 +352,7 @@ class baseDeDatosVisita{
...
@@ -352,7 +352,7 @@ class baseDeDatosVisita{
$dia="";
$dia="";
$diaux="";
$diaux="";
$total=1;
$total=1;
$res=mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site NOT LIKE '%/RIR/index.php/panel/%') AND (date >= '".date('Y-m-d',strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");
$res=mysqli_query($conn,"SELECT date,time,site FROM tbl_registro_general WHERE (site NOT LIKE '%/resiliencia/index.php/panel/%') AND (date >= '".date('Y-m-d',strtotime('-1 year'))." 00:00:00' AND date <= '".date('Y-m-d',strtotime('now'))." 23:59:59') ORDER BY tbl_registro_general.date ASC LIMIT 0,100000;");