Organizational Research By

Surprising Reserch Topic

Is the syntax correct? Explain the meaning of the syntax given below

asked Sep 13, 2013 in MYSQL by rajesh
edited Sep 12, 2013
0 votes

Related Hot Questions

1 Answer

0 votes

$dbc = mysqli_connect('', 'owen', 'aliensrool', 'aliendatabase');

Yes the syntax is correct and this query is getting used to connect the database with a PHP script. PHP uses three functions to communicate with MySQL database: The three functions are: mysqli_connect(), mysqli_query(), and mysqli_close(). 
mysqli_connect() and mysqli_query() are used to connect to mysql database and issue a query to the database. mysqli_query() is also used to retrieve the string or any other data from the database. Mysqli_close() is used to close a connection with the database.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013