MySQL Forums
Forum List  »  Oracle

MySQL Code
Posted by: Jennitha Jungitoo
Date: October 23, 2013 08:01AM

I am a beginner in MySQL. I have this code and I would like an explanation on how the function knows which database to use since $conn and $db are defined?

$conn = mysql_connect("localhost","primeb5_mysql","***");
$db = mysql_select_db("primeb5_unigis");
$query = "SELECT * FROM lesson3";
$result = mysql_query($query);
I

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL Code
2208
October 23, 2013 08:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.