mysql_connect

mysql_connect -- Open a connection to a MySQL Server

Description

resource mysql_connect ( [string server [, string username [, string password [, bool new_link]]]])

הערה :



הערה :

דוגמה 1 .

 
?php

 
$link

 
=

 
mysql_connect(

 
"localhost"

 
,

 
"mysql_user"

 
,

 
"mysql_password"

 
)

 
or

 
die("Could

 
not

 
connect")

 
;

 
print

 
("Connected

 
successfully")

 
;

 
mysql_close($link)

 
;

 
?