skip to Main Content

Mysql – Extracting SQL from a .txt

I'm trying to extract values from a text file. The content of the file is as follows: Cliente 1, 'Aarón', 'Rivero', 'Gómez', 'Almería', 100 2, 'Adela', 'Salas', 'Díaz', 'Granada', 200 3, 'Adolfo', 'Rubio', 'Flores', 'Sevilla', NULL 4, 'Adrián', 'Suárez', NULL,…

VIEW QUESTION

Mysql – After logging-in, the page refreshes and stays on login.php instead of the profile.php which it should have, what could be the error?

this is my login.php <?php session_start(); require_once('db_connection.php'); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $username = $_POST['username']; $password = $_POST['password']; $sql = "SELECT id, username, full_name FROM users WHERE username = ? AND password = ?"; $stmt = $conn->prepare($sql); $stmt->bind_param("ss", $username, $password);…

VIEW QUESTION
Back To Top
Search