php basics
-
hi im new in Php,can any one plz guide in linking database with Php
-
hi im new in Php,can any one plz guide in linking database with Php
-
hi im new in Php,can any one plz guide in linking database with Php
In PHP, this is done with the mysql_connect() function. Syntax mysql_connect(servername,username,password); Parameter Description servername Optional. Specifies the server to connect to. Default value is "localhost:3306" username Optional. Specifies the username to log in with. Default value is the name of the user that owns the server process password Optional. Specifies the password to log in with. Default is ""
"Programming is a fun"
-
hi im new in Php,can any one plz guide in linking database with Php
Let me contribute to solving your struggling : First, because all your php pages that access mysql must connect to the Db it is a wise tradition to create an include file [call it for instance "dbconn.php"] with the following content : ============================ ============================ [NOTE the "localhost" must change if the target DB is not on your system but on a Host] then whenever you create a new php script start with : "; echo 'Prod.Name='. $row["ProductName"]."
"; } ======================= Good luck s4 - php is great remember ! ioannis_o5