Jump to content


Popular Content

Showing content with the highest reputation on 01/05/2019 in all areas

  1. 1 point
    Or it could be that INSERT queries do not have a WHERE clause
  2. 1 point
    This tutorial should get you on your way with PDO.
  3. 1 point
    you need to call session_start() before any output is sent to the browser (top of the script usually) Do not put identifiers (table and column names) in quotes. The whole purpose of using prepared queries is so you don't put user-provided vaariable directly into the query. Do not needlessly create variables. Do not store passwords as plain text, use password_hash() and password_verify() $query = $conn->prepare("SELECT COUNT(id) FROM users WHERE username = ? AND password = ?"); $query-> execute( [ $_POST['username'], $_POST['password'] ] );
This leaderboard is set to New York/GMT-04:00
  • Newsletter

    Want to keep up to date with all our latest news and information?

    Sign Up

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.