I want to have a calender coding in php for inserting in the date of birth field.
And to make text in text box to move especially for student name field.
<code>
<?php

$con = mysql_connect('localhost','root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); }

mysql_select_db("stu", $con); $result = mysql_query("SELECT * FROM student"); while($row = mysql_fetch_array($result)) { echo $row['deptno'] . " " .$row['sname']

. " " .$row['dob'];

echo "
";

}mysql_close($con); ?></code>

Recommended Answers

All 3 Replies

Member Avatar for diafol

You want a datepicker? Search for them - hundreds available. If you're using jQuery, try jQueryUI widget. There are loads of other 'standalone' datepickers out there though.

And to make text in text box to move especially for student name field.

Doesn't make much sense to me.

echo "<input type=\"text\" name=\"student\" id=\"student\" value=\"{$row['sname']}\" />";

I want to show moving text for student name when the name is long

Member Avatar for diafol

I want to show moving text for student name when the name is long

What does this mean? Moving text to where? When the name is long? How long?

I'm getting real problems trying to work out what you want.

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.