0

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.

4
Contributors
11
Replies
12
Views
6 Years
Discussion Span
Last Post by diafol
Featured Replies
0

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

0
<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>

Edited by Javvy: n/a

0

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);
?>
0

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

0

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

<table align="center">

Edited by Javvy: n/a

2

Anything else … a champagne a Cuban cigar ?

Votes + Comments
What? Don't you enjoy working for free?? :)
0

> 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.

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.