Failure to connect to mySQL DB via PHP (msqli object-oriented issue)

I’m trying to connect from my Heroku app to a mysql db (Xeround) in an object-oriented way: $this->db = new mysqli( Credentials::databaseHost(), Credentials::databaseUsername(), …

Does php5.3 support mysqli extension without any additional manual configurations/updates?

I’ve built a PHP based website with MySQL as the back-end, and am planning to put it online now. The issue is that I’ve used mysqli extension in the PHP scripts extensively, and right now I’m worried …

How can I alternate between mysqli_real_escape_string and nl?

I’ve been doing some reading on mysqli_real_escape_string(), and, after getting my content properly escaped, I’m having some trouble getting to display properly when I pull it out again. Here’s the …

How to solve “Fatal error: Class ‘MySQLi’ not found”?

I am doing a tutorial and am getting this error: Fatal error: Class ‘MySQLi’ not found (LONG URL) on line 8 The code on line 8 is: $mysqli = new MySQLi($db_server, $db_user, $db_pass, $db_name); …

Limit a MySQL query to an even number of results

I have a bit of PHP code which I need to return an even number of results from a MySQL database. I’m using the mysqli extension to execute my query. My code is approximately this at the moment: //…