Can any body help me how can i design my first page in PHP and database sql server2008 which should have four textboxes in the center of the form like this

Name Naveed
FatherName Akhter
DOB -
NIC NO -


and two buttons one for exit and one for changing the record

Please please help me it would be kindness.

Just design it in HTML and keep it out of PHP tags.

I know this but can you give me some example or source webpage which exactly meets my requirment

<form>
<table>
<tr><td>Name:</td><td><input type="text" name="name" value="Naveed"></td></tr>
<tr><td>Father's Name:</td><td><input type="text" name="fname" value="Akhter"></td></tr>
<tr><td>DOB:</td><td><input type="text" name="dob"></td></tr>
<tr><td>NIC No:</td><td><input type="text" name="nic"></td></tr>
<tr><td colspan="2"><button>Exit</button><button>Update</button></td></tr>
</table>
</form>

Thanks now tell me how to connect the form with database

Add before the <form>:

<?php
$conn = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$conn) {
    die('Could not connect: ' . mysql_error());
}
?>

Add close it at the end of the script.

<?php
mysql_close($conn);
?>

Ok fine please just tell me how can i shift the textboxes in the mid of the page and how to adjust below the textboxes

If you want to align the whole table to the middle, you just need to add:

<table align="center">

Anything else … a champagne a Cuban cigar ?

commented: What? Don't you enjoy working for free?? :) +8
Member Avatar for diafol

> Anything else … a champagne a Cuban cigar ?

Haw haw, my sentiments exactly. Come one, you sons of camel herders, do my work for me!

With 190+ posts Naveed, I think you can do better.

Can anybody tell me where can i find the complete database application designed in php??

Member Avatar for diafol

...Yoda has spoken

commented: Arf! :) +11
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.