示例#1
0
<?php

// On récupère les informations de connection à  notre base de données dans le tableau (array) $database
require 'config/config2.php';
include 'functions/database.fn.php';
$db_database = $config['database'];
$bdd = getPDOLink($config);
$page = "backoffice/home_clubs.php";
if (!empty($_POST)) {
    if (isset($_POST['action']) and $_POST['action'] == "edit") {
    } else {
        try {
            $club_obj = new Cl_Club();
            $data = $club_obj->club_update($_POST);
            if ($data) {
                $success = CLUB_UPDATE_SUCCESS;
            }
            //echo '<meta http-equiv="refresh" content="0;url='.$page.'">';
        } catch (Exception $e) {
            $error = $e->getMessage();
        }
    }
}
/*
echo "<pre>";
print_r($_POST);
echo "</pre>";


	$query = "SELECT `USER_ID`,`NOM`,`PRENOM`,`ALIAS`,`RUE`,`NUMERO`,`CODE_POSTAL`,`LOCALITE`,`PAYS`,`TELEPHONE`,`GSM`,`EMAIL`
		FROM `$db_database`.`utilisateurs`";
示例#2
0
<?php

require_once 'config/config2.php';
if (!empty($_POST)) {
    try {
        $club_obj = new Cl_Club();
        $data = $club_obj->club_registration($_POST);
        if ($data) {
            $success = CLUB_REGISTRATION_SUCCESS;
        }
    } catch (Exception $e) {
        $error = $e->getMessage();
    }
}
/*
echo "<pre>";
print_r($_POST);
echo "</pre>";
*/
?>
<!DOCTYPE html>
<html lang="fr">
  <head>
    <meta charset="ISO8859-15">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=0.5">
    <title>Smart Registration Form</title>

    <link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
    <!-- Bootstrap -->
    <link href="../css/bootstrap.min.css" rel="stylesheet">
示例#3
0
<?php

require_once 'config.php';
//$page = "home_utilisateurs.php";
if (!empty($_POST)) {
    /*
    echo "<pre>";
    print_r($_POST);
    echo "</pre>";
    */
    if (isset($_POST['DELETED']) and $_POST['DELETED'] == "DELETE") {
        try {
            $club_obj = new Cl_Club();
            $data = $club_obj->club_delete($_POST);
            if ($data) {
                $success = CLUB_DELETE_SUCCESS;
            }
            //echo '<meta http-equiv="refresh" content="0;url='.$page.'">';
        } catch (Exception $e) {
            $error = $e->getMessage();
        }
    }
}
?>
<!DOCTYPE html>
<html lang="fr">
  <head>
    <meta charset="ISO8859-15">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Smart Login Page</title>