Showing posts with the label pdo

[FIXED] Is the switch-function SQL-injection safe?

Issue I'm trying to access entries from the database with variable column names. I have this t…

[FIXED] Create a PHP application vulnerable to multi-statement SQL injections

Issue I am trying to create an application in PHP using PDO that is deliberately vulnerable to SQL …

[FIXED] Is My PDO Prepared Statement Secure If I Bind The Parameters In The Execute Function?

Issue I have some form data that I'm writing to a database with PDO prepared statements. This …

[FIXED] Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

Issue Migration error on Laravel 5.4 with php artisan make:auth [Illuminate\Database\QueryExce…

[FIXED] How to modify a Login System in msqli query to PDO?

Issue session_start(); if($_SERVER['REQUEST_METHOD'] == 'POST'){ $email = $my…

[FIXED] Fatal error: Uncaught Error: Class "server\PDO" not found

Issue For a project I'm working on, I am trying to use PHP to connect to a database using PDO. …

[FIXED] Simple PHP error handling set up working in MySQL & MySQLi, not working in PDO

Issue I've just finished refactoring a bunch of MySQL and MySQLi forms to PDO. Everything is w…

[FIXED] PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused

Issue I am trying to use a PHP connection to connect MySQL Database which is on phpmyadmin. Nothing…

[FIXED] When should one use PDO::query?

Issue I have just learned that in order to avoid SQL injections it's better to use the prepare/…

[FIXED] How to prevent duplicate usernames when people register?

Issue I have been making a login/register system and I am drawing close to finishing my register po…