lollipop

A PHP-framework
Log | Files | Refs

commit 4493e916aec5e95808918754698e8d5f9ad294fc
parent 1170a7b34eef670e908d6f6789612d5786070a74
Author: MoiBaguette <[email protected]>
Date:   Sat, 15 Apr 2023 15:59:02 +0200

orm in search_user

Diffstat:
Malter_user.php | 11-----------
Msearch_user.php | 2+-
2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/alter_user.php b/alter_user.php @@ -56,17 +56,6 @@ </form> </div> <?php - $servername = "86.92.67.21"; - $username = "friedel"; - $password = "hailiwa"; - $dbname = "wap2"; - // Create connection - $conn = mysqli_connect($servername, $username, $password, $dbname); - // Check connection - if (!$conn) { - die("Connection failed: " . mysqli_connect_error()); - } - if ($_SERVER["REQUEST_METHOD"] == "POST") { $errors = array(); // initialize an empty array to store errors diff --git a/search_user.php b/search_user.php @@ -38,7 +38,7 @@ </thead> <tbody>"; foreach($results as $data) { - $link = "/alteruser.php?email=" . $data->email; + $link = "/alter_user.php?email=" . $data->email; echo "<tr>"; echo "<td>" . $data->email . "</td>"; echo "<td>" . $data->fname . "</td>";