shlok.mobi
General Knowledge Questions and Answers - 51
php
Questions and Answers
Prepare for Interview
Question:
How do you connet mysql database with PHP ?
Answer:
We can connect Mysql Database with PHP using both Procedural and Object oriented style like below
$link = mysqli_connect(""localhost"", ""username"", ""password"", ""dbofpcds"");
$mysqli = new mysqli(""localhost"", ""username"", ""password"", ""dbname"");
and in old type of connectivity were $link = mysql_connect(""localhost"", ""username"", ""password"");
mysql_select_db(""database"",$link);


More Questions :
  • How can we remove duplicate values from an array ?
  • List out the predefined classes in PHP?
  • What is htaccess? Why do we use this and Where?
  • What are the different functions in sorting an array?
  • command to fetch onlythe unique values?
  • How do you upload videos using PHP & MySQL
  • .What are magic quotes in PHP?
  • how we know browser properties
  • what is CAPTCHA ?
  • What is the meaning of Open Source Software?
  • Are objects passed by value or by reference?
  • How do you destroy a particular or all Sessions?
  • What is meant by urlencode and urldocode?
  • In how many ways we can retrieve data in the result set of MYSQL using PHP?
  • How to store the uploaded file to the final location?
  • Explain the types of string comparision function in PHP.
  • Explain soundex() and metaphone().
  • Explain the types of functions for Splitting String?
  • What do you mean range()?
  • How to read and display a HTML source from the website url?
  • Test your English Language
  • Comics of the Day
  • Best Geek Gift Ideas and Gadgets For Christmas
  • Books And Authors - Quiz
  • What to Eat in Sikkim
  • Most Popular Xmas Vacation Destinations
  • Tips to get ready for Summer
  • Friendship Day
  • Class 9 - Comprehension
  • Best Wedding Dresses in the World
  • Lifestyle Gadgets
  • New Hairstyles For Girls
  • Rare Flowers That Are Stunning To Look At
  • Tea Types
  • Most Beautiful Mosques In The World
  • Cutest Animal Facts
  • Best Foods for Healthy Eyes
  • Class 9 -Factorization of Algebraic Experssions
  • Tips to get ready for Wedding
  • Class 9 - Work and Energy
  • Class 8 - Conservation of Plants And Animals
  • Valentines Day Flowers
  • loading...

    Did you Know :

    Seaweed can grow up to 12 inches per day!
    More ...

    Shlok Consultants