Jump to content

studentici

Members
  • Posts

    1
  • Joined

  • Last visited

studentici's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. 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.
×
×
  • Create New...