12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 03/12/2019
Connecting PHP and MYSQL
Download Tamil Nadu 12th Standard Computer Applications question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Applications Test

1.
_______Function is used to close an existing opened database connection between PHP scripting and MySQL Database Server.
mysqli_close( )
mysqli_connect error( )
mysqli_query( )
mysqli_connect( )
2.
_______IS a function, helps to execute the SQL query statements in PHP scripting language
mysqli_closet( )
mysqlLconnect_error( )
mysqli_query( )
mysqli_connect( )
3.
How many parameter are required for MYSQLi query function in PHP ?
2
3
4
5
4.
Which is the not a correct MySQL Function in PHP ?
Mysqli_connect() Function
Mysqli_close() Function
mysqli_select_data() Function
mysqli_affected_rows() Function
5.
Which is the correct function Closing Connection in PHP ?
mysqli_close(“Connection Object”);
close(“Connection Object”);
mysql_close(“Connection Object”);
mysqli_close(“Database Object”);
6.
What is the main goal of MySQL and PHP connectivity?
7.
How many parameters to connect to database server, in Mysqli_connect( ) Function?
8.
What is mysqli_fetch_assoc() Function?
9.
Difference between Connection and Close function?
10.
What is MySQLi function?
11.
What is the use of SQL statements in PHP?
12.
What is the main goal of MySQL and PHP connectivity?
13.
Wha is MySQL?
14.
15.
Write is the purpose of MySQLi function available.
16.
Write a short note on parameters of mysqli_connect( ) function?
17.
Explain MySQLi Queries with examples.
1.
(b)
mysqli_connect error( )
2.
(c)
mysqli_query( )
3.
(a)
2
4.
(c)
mysqli_select_data() Function
5.
(a)
mysqli_close(“Connection Object”);
6.
To retrieve and manipulate the data from MySQL database server.
7.
This function requires four parameters to connect to database server.
8.
1. The mysqli_fetch_assoc() function fetches a result row as an associative array .
2. Syntax
mysqIi_fetch_assoc(result);
9.
| Connection function | Close function |
|---|---|
| 1) Before accessing MYSQL Database, connect to Database Server machine via PHP scripting language using Mysqli_connect() Function. | Mysqli_close() Function is used to close an existing opened database connection between PHP scripting and MySQL Database Server. |
| 2) This function requires 4 parameters | This function requires only one parameter. |
10.
(i) The MySQLi functions allows you to access MYSQL database servers.
(ii) For the MYSQL functions to be available, you must compile PHP with support for the MYSQLi extension.
11.
The SQL query statements are helping with PHP MySQL extension to achieve the objective of MySQL and PHP connection.
12.
The main goal of MySQL and PHP connectivity is to retrieve and manipulate the data from MySQL database server.
13.
(i) MySQL is the most popular Open Source Relational SQL Database Management System.
(ii) MySQL is one of the best RDBMS being used for developing various web-based software applications.
14.
15.
In PHP Scripting language many functions are available for MySQL Database connectivity and executing SQL queries. MySQLi is extension in PHP Scripting language which gives access to the MySQL database. MySQLi extension was introduced version 5.0.0.
The MySQLi extension contains the following important functions which are related to MySQL database connectivity and management.
i) Mysqli_connect() Function
ii) Mysqli_close() Function
iii) Mysqli_query() Function
16.
(i) Four Parameters are used to connect to the Database server.
(ii) They are
1.$ servername -> Database Server server IP address
2.$ susername -> Database Server User Name
3.$ password -> Database Server Password
4.$ DB_Name -> Database Name
17.
Performing Queries: The main goal of MySQL and PHP connectivity is to retrieve and manipulate the data from MySQL database server. The SQL query statements are help in PHP MySQL extension to achieve the objective of MySQL and PHP connection. “mysqli_query” is a function, that helps to execute the SQL query statements in PHP scripting language.
Syntax:
mysqli_query(“Connection Object”,“SQL Query”)
Example:
$con=mysqli_connect(“localhost”,“my_user”,“my_password”,“Student_DB”);
$sql=“SELECT student_name,student_age FROM student”;mysqli_query($con,$sql);
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards