Write the statements which are used to connect php, C/C++ Programming

Assignment Help:

Write the statements which are used to connect PHP with MySQL?

Statements which can be used to connect PHP with MySQL is:

$conn = mysql_connect('localhost');

echo $conn;

?>

This statement gets the resource of localhost. There are other different ways with which you can connect to database and they are as follows:

mysql_connect('db.domain.com:33306','root','user');

mysql_connect('localhost:/tmp/mysql.sock');

mysql_connect('localhost','rasmus','foobar',

true,MYSQL_CLIENT_SSL|MYSQL_CLIENT_COMPRESS);

?>

 


Related Discussions:- Write the statements which are used to connect php

Pawnbroker software to be written in vb, Pawnbroker software to be written ...

Pawnbroker software to be written in VB Project Description: I want software written for my pawnshop. I am currently using a program called pawnboss but would like to have my

Homework, 5 questions. plus i will provide the "vector.h" for the questions...

5 questions. plus i will provide the "vector.h" for the questions that needs it

What are all of the implicit member functions of the class? , What are all ...

What are all of the implicit member functions of the class? Or what are all of the functions that compiler implements for us if we don't describe one? A: 1.      copy ctor

Explain floating literal, Floating  literal They can be written in comm...

Floating  literal They can be written in common decimal as well as scientific notation (floating point representation). By default it is of type double. F, L is applied only to

Minimum shelves, write a program to find the minimum number of shelves

write a program to find the minimum number of shelves

Assigment Help, I need help in the C++ programming assignment. I can send t...

I need help in the C++ programming assignment. I can send the files the assignment is times 3hrs.

''c'' programme, Write a ''C'' program to accept any 3 digit integer number...

Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

Described the difference among "new" and "operator new" ?, Described the di...

Described the difference among "new" and "operator new" ? A:"operator new" works such as malloc.

Write a Programme that computes the price of portfolio, write a programme t...

write a programme that computes the price of shares and options. do the options in one-period binomial model.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd