Posts

Java Database Connection-JDBC-tutorial

Image
Java Database Connectivity (JDBC) Tutorial  Table of Contents Two-Tier architecture Three-Tier architecture Types of Drivers JDBC Connection java.sql Package Classes JDBC program   In this tutorial, you are going to learn how a Java program connects to a database .  You will also learn about different types of architectures and also Drivers that are used to communicate java program with database. Two-Tier architecture in this tier, Java program and Database. Client program  Database   MoveT OC Three-Tier architecture  Client program  Server   Database       In this architecture, the client program interacts with the server program and the server program interacts with the database. The server program retrieves data and sends it to the client.    → Client Program ( ex: HTML form)   can't directly interact with database → Server program acts as a mediator between the client and database. It also processes the data...

PHP Tutorials Home

Image
 PHP Tutorial for Beginners   Table of Contents   Basic PHP       PHP Introduction     PHP Operators       PHP Conditions      PHP Loops     PHP Arrays     PHP Associative Arrays     PHP String Functions     PHP Array Functions     PHP Functions     PHP Super Global Variables     PHP Forms      PHP File Upload     PHP Sessions     PHP Cookies     PHP MyAdmin Tool     PHP with MySQL        PHP Files       PHP Dates       Advanced PHP         PHP OOPs-1        PHP OOPs-2         Interview Questions in PHP         Practice Questions in PHP Basics   Practice Questions in PHP Arr...

PHP Basics tutorial Operators

Image
    Learn PHP Operators  PHP provides different types of operators. In this tutorial, we discuss some of the operators that we use in coding very frequently.     Table of Contents Arithmetic Operators Assignment Operators. Comparison Operators   Logical Operators. Incrementing/Decrementing Operators. String Operators     Using different types of Operator in PHP 1. Arithmetic Operators [ + - * / % ] in PHP addition(+) subtraction(-)  multiply(*) division(/) modular(%)   <?php   print ( 10 + 20 + 30 );   ?>     Ex2:   <?php   $num1 = 10 ; $ num2= 20 ; $total = $ num1 + $ num2; print 'Total = ' . $total ;   ?> Operator precedence Order of evaluation of an expression 1 ) / * % 2 ) + - 3 ) =      ex: a * ( b+c/d ) * 22 the correct way is: ( a*b ) + ( c/d ) * 22 According to the expression first it goes to division and finally goes to multiplication addition, at l...