MySQLi (MySQL Improved) has many advantages over the older PHP MySQL driver. It takes advantage the newer features built into MySQL 4.1.3 and newer. Below are some simple examples of basic MySQL functions (SELECT, INSERT, UPDATE and DELETE). SELECT $mysqli = new mysqli(‘$server’, ‘$user’, ‘$pass’, ‘$db’); if (mysqli_connect_errno()) { printf (“Connect failed: %sn”, mysqli_connect_error()); exit(); […]
read more