easyphp can not connect to db in PHP Posted November 6, 2017 · Edited November 6, 2017 by studentici more words Me learning php easyph have version 3.7, easyphp not that easy to me so i have a question. I can connect to mysql but can not detect database, this must be a basic tweak for those who know the ropes. <?php $connection = mysql_connect('localhost','root','') ; $database = mysql_select_db('loginapp'); if($connection){ echo "CONNECTED" ; } else {die('Error.');} if($database){'DATABASE FOUND';} else { die("DATABASE NOT FOUND");} ?> $connection = mysql_connect('localhost','root','') ; WORKS $database = mysql_select_db('loginapp'); DOES NOT WORK so there is some confirmed connection.
easyphp can not connect to db
in PHP
Posted · Edited by studentici
more words
Me learning php easyph have version 3.7, easyphp not that easy to me so i have a question. I can connect to mysql but can not detect database, this must be a basic tweak for those who know the ropes.
WORKS
DOES NOT WORK
so there is some confirmed connection.