Ejemplo n.º 1
0
	</body>
</html>
	<?php 
    header("Refresh: 5, url=../ACCUEIL/Accueil.php");
    ob_flush();
    exit;
}
function event_existe($Event_id)
{
    global $connect_e;
    $result = mysqli_query($connect_e, "select * from event where Event_id=" . $Event_id);
    if ($result->num_rows > 0) {
        $existe = TRUE;
    } else {
        $existe = FALSE;
    }
    return $existe;
}
function select_event($Event_id)
{
    global $connect_e;
    $result = mysqli_query($connect_e, "select * from event where Event_id=" . $Event_id) or die("MySQL Erreur : " . mysqli_error());
    return $result;
}
$result = select_event($_GET['Event_id']);
$event = mysqli_fetch_assoc($result);
$nom_e = $event['Nom_e'];
$description = $event['description_e'];
$prix = $event['prix'];
$privacy = $event['privacy'];
$Id_crea = $event['id_utilisateur'];
Ejemplo n.º 2
0
"/>
		Prix : <input type="text" name="description" value="<?php 
    echo $prix;
    ?>
"/>
            <input type="hidden" name="Event_id" value="<?php 
    echo $Event_id;
    ?>
"/>
            <input type="hidden" name="action" value="save"/>
            <input type="submit"/>
        </form>

            <?php 
} else {
    $result = select_event();
    ?>
        <table>
                <?php 
    while ($event = mysqli_fetch_assoc($result)) {
        ?>
            <tr>
                <td>
                            <?php 
        echo $event['nom'];
        ?>
                </td>
                <td>
                            <?php 
        echo $event['description'];
        ?>