PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of sibiraj.p.r   Database Insert Class   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example
Class: Database Insert Class
class for Insert data into a MySQL database table
Author: By
Last change:
Date: 13 years ago
Size: 1,456 bytes


Class file image Download
<body style="background:#888; margin-left:250px;">
<div id="top" style="background:url(birds.jpg) no-repeat; width:1000px; height:180px; ">
<form action="" method="post">
<table style="margin-left:50px;">
<td><input type="text" name="name"></td>
<td><input type="text" name="age"></td>
<td><select name="gender" style="width:145px;">
<option value="0">----------------------------</option>
<option value="male">Male</option>
<option value="female">Female</option>
<td><input type="text" name="mark"></td>
<td><input type="submit" name="sub" name="Insert"></td>

$obj=new db("localhost","root","","test");
<div style="background:#FFF; width:400px; padding-left:20px;">
<h3>Read Me</h3>
Best to Use: WAMP,LAMP
<li>Create Database NAME - test</li>
<li>import tables file name - test.sql</li>
<li>copy this folder to WWW in WAMP or LAMP</li>
<li>Run it in Browser</li>
<li>Its Work!!!!!!!!!</li>
<H4>Contact :</H4>