<? // Include the file for the specific functions on Users require_once '../../../Models/Users.php'; // New Helper to use the functions $id=$_GET["id"]; $User= new UsersModel(); // Performing a select with all "*" and specifiying the RoleId=2 for selecting only users $results = $User->SelectSpecific("*",array( "UserId" => $id )); $results=$results[0]; //If an edit is performed if(! empty($_POST)) { $data=$_POST; $answer=$User->Update($data,array( "UserId" => $id )); header("Location: ./index.php"); } function quotes($string) { return "'".$string."'"; } ?> <? include "header.php";?> <h2>Editer un utilisateur</h2> <form class="form-horizontal" data-toggle="validator" role="form" method="post" >