Category: Database

PDO and MSSQL

When you write your first web application, chances are you’re going to query a database. When you write it in PHP, chances are it’ll look like this: $mysqli = new mysqli(“example.com”, “user”, “password”, “database”); $result = $mysqli->query(“SELECT * FROM product”); $row = $result->fetch_assoc(); Before long, you have to start handling user input, which means… Read more