PHP Database connection

Database connections using PHP and MS Access 1. Display list of records from MS Access  database to PHP web page. (for this example you need to create a DSN from control panel, to create DSN click here) <html> <body> <h1> Connecting to Ms Access using PHP </h1> <hr> <?php $conn=odbc_connect(‘acc_php’,”,”); if (!$conn) { exit(“Connection Failed: ” […]

Share

PHP Database connection Read More »

PHP-Login page and sessions

PHP Session Variables 1. Login page program using PHP and MySQL DB  a) first create a html page as following. <html> <body > <form method=”post” action=”userLogin.php” > <table border=”1″ > <tr> <td> <B>User-Id</B> </td> <td><input type=”text” name=”userid”> </tr> <tr> <td><B>Password</B></td> <td><input name=”password” type=”password”></input></td> </tr> <tr> <td><input type=”submit” value=”Submit”> <td><input type=”reset” value=”Reset”> </tr> </table> </form> </body>

Share

PHP-Login page and sessions Read More »

PHP-Form validation

In this tutorials, you will be able to understand how form validation are done using php syntax. Step1 : Create a file called “Validation.php” and copy the following code and paste into it. <!DOCTYPE HTML> <html> <head> <style> .error {color: #FF00FF;} </style> </head> <body> <?php $nameErr = $emailErr = $genderErr = $websiteErr = “”; $name

Share

PHP-Form validation Read More »

PHP-Examples

Here are some basic programs using PHP 1. Arithmetic operation program using PHP <?php $str=” Arithmetic operation”; $a=4; $b=5; $c=$a+$b; echo “Sum=”, $c; $c=$a-$b; echo “<br>Sub=”, $c; $c=$a*$b; echo “<br>Mul=”, $c; $c=$a/$b; echo “<br>Div=”, $c; ?> 2. PHP program to print person name and age. <?php $name=”John”; $age=20; echo “Person name=”, $name; echo “<br>Age=”, $age;

Share

PHP-Examples Read More »

PHP

PHP = Pre-processor Hypertext PHP, a server side scripting languages widely (nearly 82% of the worlds websites are developed using PHP!) used in developing dynamic and interactive webpages. Advantages of PHP ——Dynamic content. —Computational capability. —Database and file system access. —Network access (from the server only). —Built-in libraries and functions. —Known platform for execution (as opposed

Share

PHP Read More »

SEO friendly META Tags

SEO is a three letter acronym short for Search Engine Optimization.Search engine optimization about trying to rank higher in search engines. To rank higher you make changes to your website that make it easier for search engines to understand your content. Also, it can mean getting links from other websites.  source: www.madebymarket.com/help/ads/what-does-seo–mean.html SEO Friendly code for your website

Share

SEO friendly META Tags Read More »

Javascript loop programs

1. Print 1-10 numbers using FOR loop program <html> <head> <title> Javascript looping program </title> </head> <body> <script language=”javascript”> var i document.write(“<h1>”+”FOR Looping program” +”</h1>”) for(i=1; i<=10; i++) { document.write(i+”<br>”) } </script> </body> </html> 2. WHILE Loop using Javascript <html> <head> <title> Javascript while loop program </title> </head> <body> <script language=”javascript”> var i=1 document.write(“<h1>”+”WHILE Loop

Share

Javascript loop programs Read More »

Javascript programs

Java Script is an interpreted, object-based scripting language, developed by Sun Micro systems and Netscape.  JavaScript makes it easier to create interactive Web Pages.  Common Gateway Interface was considered as the standard for processing the forms. It was time consuming process because form validation used to take place on the server side.  JavaScript made the entire work easier by

Share

Javascript programs Read More »

Android example on webview with progressbar

The following example shows that use of android webview with progress bar. 1. copy the following code and paste into “AndroidManifest.xml” <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”app.mitindia.com.mywebappprogressbar” > <uses-permission android:name=”android.permission.INTERNET” /> <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > <activity android:name=”.MainActivity” android:label=”@string/app_name” > <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> </application> </manifest> 2. Copy the

Share

Android example on webview with progressbar Read More »

Share
Scroll to Top