Esempio n. 1
0
<head>
	<link href="css/bootstrap.css" rel="stylesheet">
</head>
<body style="background:rgb(240, 241, 242)">

<?php 
error_reporting(0);
require "manageDB.php";
require "endpointSPARQL/manageEndpointSparql.php";
$nome = $_POST["nome_summary"];
$descrizione = $_POST["descr_summary"];
$idUser = $_GET["idUser"];
$path_foto = $_POST["path_summary"];
$url_video = $_POST["url_summary"];
$selectOption = $_POST['selectSum'];
$dataInserimento = getTimeAndDate();
$Lastresult = " ";
/*echo "sel: ".$selectOption."*<br>";
echo $nome."<br>";
echo $descrizione."<br>";
echo "idUser: "******"<br>";
echo $url_video."<br>";*/
//if (!empty($idUser))
//echo "idUser:"******"aaaaa<br>";
$conn = mysql_connect('localhost', 'root', 'root');
if (!$conn) {
    die('Could not connect: ' . mysql_error());
}
//echo 'Connected successfully<br>';
mysql_select_db("ws") or die(mysql_error());
Esempio n. 2
0
/** 
 * @author Amedeo Leo
 */
function insertNotice($idDestinatario, $idIdea, $text, $type, $confirmed = 0)
{
    $date = getTimeAndDate();
    $conn = getConn();
    $sql = "INSERT INTO notice (idDestinatario, idIdea, date,  text, type, confirmed) VALUES ('{$idDestinatario}','{$idIdea}','{$date}','{$text}', '{$type}', '{$confirmed}')";
    $result = mysqli_query($conn, $sql) or die("Insert failed");
    return $result;
}