Skip to content

IT Notes

IT Notes

  • Home
  • Privacy Policy
  • Sample Page
    • Home
    • Interview Questions
    • Page 80
PHP Interview Questions

What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

The mysqli_fetch_object() function collects the first single matching record where mysqli_fetch_array() collects all matching records from the table in an array.

PHP Interview Questions

Which function gives us the number of affected entries by a query?

mysqli_affected_rows() return the number of entries affected by an SQL query.

PHP Interview Questions

How is it possible to know the number of rows returned in the result set?

The function mysqli_num_rows() returns the number of rows in a result set.

PHP Interview Questions

How be the result set of Mysql handled in PHP?

The result set can be handled using mysqli_fetch_array, mysqli_fetch_assoc, mysqli_fetch_object or mysqli_fetch_row.

PHP Interview Questions

What is the function mysql_pconnect() useful for?

mysql_pconnect() ensure a persistent connection to the database, it means that the connection does not close when the PHP script ends. This function is not supported in PHP 7.0 and above

PHP Interview Questions

How can we connect to a MySQL database from a PHP script?

 To connect to a MySQL database, we must use mysqli_connect() function as follows: <!--?php $database = mysqli_connect("HOST", "USER_NAME", "PASSWORD"); mysqli_select_db($database,"DATABASE_NAME"); ?-->

PHP Interview Questions

What is the function file_get_contents() useful for?

file_get_contents() lets reading a file and storing it in a string variable.

PHP Interview Questions

What should we do to be able to export data into an Excel file?

The most common and used way is to get data into a format supported by Excel. For example, it is possible to write a .csv file, to choose for example…

PHP Interview Questions

What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?

This is a PHP syntax error expressing that a mistake at the line x stops parsing and executing the program.

PHP Interview Questions

How is it possible to set an infinite execution time for PHP script?

The set_time_limit(0) added at the beginning of a script sets to infinite the time of execution to not have the PHP error ‘maximum execution time exceeded.’ It is also possible…

Posts navigation

1 … 79 80 81 82

« Previous Page — Next Page »

Recent Posts

  • What is Blade?
  • What are the features of Laravel?
  • What is Laravel?
  • Explain the for keyword
  • Explain the enum keyword

Recent Comments

No comments to show.

Archives

  • June 2025
  • November 2024
  • August 2024
  • July 2024
  • April 2024
  • September 2023
  • May 2023

Categories

  • Android Interview Questions
  • Angular JS interview Questions
  • C Programming
  • C Programs
  • C++ Programming
  • Codeigniter Interview Questions
  • Computer Network
  • CSS Interview Questions
  • HTML Interview Questions
  • Java
  • Java Interview Questions
  • Javascript Interview Questions
  • jQuery interview Questions
  • Laravel Interview Questions
  • Mobile Application Development
  • MySQL Interview Questions
  • PHP
  • PHP Interview Questions
  • Python
  • Python Interview Questions
  • React JS Interview Questions
  • Software Engineering
  • System Analysis and Design (SAAD)
  • Uncategorized
  • Vtiger CRM

You Missed

Laravel Interview Questions

What is Blade?

Laravel Interview Questions

What are the features of Laravel?

Laravel Interview Questions

What is Laravel?

C Programming

Explain the for keyword

IT Notes

Copyright © All rights reserved | Blogus by Themeansar.