PHP and MySQL - can't select database -


I'm trying to use a database 'coolometer I tried to connect to it like this:

  $ con = mysqli_connect ("localhost", "x", "x", "coolometer") or die ("can not connect");   

But this is just a 'no database selected' suggestion?

I think your MySQLi extension is disabled, so you first need to check var_dump ( Function_exists ('mysqli_connect')); If it outputs to bool (false), then you have to enable the MySQLi extension.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

java - Reaching JTextField in a DocumentListener -

c# - Add Image in a stackpanel based on textbox input -