0

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>

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by diafol
1

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']}\" />";
0

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

0

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.

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.