Talking City



Go Back   Talking City > Coding and Programming > PHP Forum
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-24-2016, 05:44 PM
Swati walia Swati walia is offline
Senior Member
 
Join Date: Sep 2016
Posts: 108
Swati walia is on a distinguished road
Default Php

What PHP commands are used to connect to the database?

Reply With Quote
  #2  
Old 09-26-2016, 06:39 PM
priya.sharma priya.sharma is offline
Senior Member
 
Join Date: Aug 2016
Posts: 100
priya.sharma is on a distinguished road
Default

connection mysql_connect(server,user,p***wd,new_link,client_f lag);
Reply With Quote
  #3  
Old 09-26-2016, 07:26 PM
alka alka is offline
Senior Member
 
Join Date: Nov 2015
Location: Chandigarh
Posts: 192
alka is on a distinguished road
Default

With mysql it
mysql_connect($hostname,$useranme,$p***word);
myqsl_select_db($database name);

and with mysqli
mysqli_connect($hostname,$useranme,$p***word,$db);
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +5.5. The time now is 07:03 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Talking City Managed by Megrisoft