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>

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