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: 05/09/2022
QB365 provides a detailed and simple solution for every Possible Creative Questions in Class 12 Computer Applications Subject -Connecting PHP and MYSQL, English Medium. It will help Students to get more practice questions, Students can Practice these question papers in addition to score best marks.
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.
Write briefly about mysqli_connect_error() function with syntax, and give example.
2.
Write about mysqli_affected_rows() function and its syntax.
3.
Write short note on mysqli_select_db().
4.
Write short note on PHP with MySQL.
5.
How MySQL database used in PHP? Write the general format of it?
6.
How the connection will get success in mysqli_connect( ) function?
7.
What is the use of SQL statements in PHP?
8.
What is the main goal of MySQL and PHP connectivity?
9.
Wha is MySQL?
10.
Write a note PHP MySQL database connection.
11.
Differentiate mysqli_affected_rows( ) Function and mysqli_fetch_assoc( ) Function.
1.
The mysqli_connect-errno ( ) function returns the error description from the last connection error, if any.
Syntax
mysql_connect_error();
It returns a string that describes the error. NULL if no error occurred.
Example:
\(\$\)conn = mysqli_connect('local host","wrong_user", "my_psw", "my_db");
// Check connection
if (!\(\$\)conn) {die("Connection error: " . mysqli_connect_errno());
}
?>
2.
Mysqli_affected_rows ( ) function returns the number of affected rows in the previous SELECT INSERT, UPDATE, REPLACE or DELETE query.
Syntax
mysqli_affected_rows(connection);
Here,
(i) a Connection specifies the MySQL connection to use.
(ii) It returns value which is integer > 0 indicates the number of rows affected.
'0' indicates that no records were affected.
'-1' indicates that the query returned an error.
3.
Mysqli_select_db() function is used to change the default database for the connection. It returns TRUE value to success or FALSE value on failure.
Syntax:
mysqli_select_db(connection, db narne);
where,
(i) Connection - specifies the Mysql connection to use
(ii) db name - specifies the default database to be used.
4.
(i) PHP is the most popular scripting language for web development It is free, open-source and server-side.
(ii) MySQL is a Relational Database Management System (RDBMS) that uses Structured Query Language (SQL).
5.
1. PHP provides various functions to access the MySQL database and to manipulate the data records inside the MySQL database.
2. We require to call the PHP functions in the same way we call any other PHP function.
General format for PHP functions use with MySQL
Mysql_function(value, value...)
6.
(i) The mysqll_connect function uses these variables and connect Database server from PHP scripting.
(ii) If connection gets fail, output will be printed with MySQL error code. Otherwise connection is success.
7.
The SQL query statements are helping with PHP MySQL extension to achieve the objective of MySQL and PHP connection.
8.
The main goal of MySQL and PHP connectivity is to retrieve and manipulate the data from MySQL database server.
9.
(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.
10.
Database Connections: Accessing MySQL Database, connect to Database Server machine via PHP scripting language using Mysqli_connect() Function.
Syntax:
mysqli_connect("Server Name","User Name","Password","DB Name");
This function requires four parameters to connect to database server. Database Server name, Database username, password and Database Name.
11.
| mysqli_affected rows( ) | mysqli_fetch_assoc( ) |
|---|---|
| It returns the number of affected rows in the prearvious SELECT, INSERT UPDATE, REPLACE, or DELETE query. | It fetches a result rowas an associative aray |
| Return value: An integer >0 indicates the number of rows affected (0 indicates that no records were affected. '-1' indicates that the query returned an error). |
Returns an associative array of strings representing the fetched row. NULL if there are no more rows in result set. |
| Syntax: mysqli_affected_rows (connection); |
Syntax: mysqli fetch_as-soc(result); |
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