can some tell me what's wrong i tried putting the $date in my textfield from my MySQL. can someone pls correct my code :) thanks
<?php
$username="root";
$password="";
$database="dbdate";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die("Unable to select database");
$query = "SELECT *
FROM `cdate`
WHERE 1
LIMIT 0 , 30";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo $row['date'];
}
?>
<input name = "date" value="<? echo $row['date']; ?>" type="text" />