Newer
Older
ournorth2021 / api / guardar_dato.php
LuisOlaya on 8 Apr 2021 570 bytes primer
<?php        
	include("../app/models/connect.php");

    $user = $_POST["user"];
    $dato = $_POST["dato"];
    $string = $_POST["string"];
    $url = $_POST["url"];
    $hoy = date("Y-m-d H:i:s");

    $query = mysqli_query($connect,"INSERT INTO Analitica (id_evento, id_user, tipo, url, titulo, created_at) 
    VALUES 
    ( 1, ".$user.", ".$dato.", '".$url."', '".$string."', '".$hoy."' )");

echo "INSERT INTO Analitica (id_evento, id_user, tipo, titulo, created_at) 
    VALUES 
    ( 1, ".$user.", ".$dato.", '".$string."', '".$hoy."' )";
	 
?>