how can i display data from sql database to a textbox : I am currently searching, how can I put or display data from my database through a textbox that will be used to submit to a different table later on.

$query=mysql_query("select * from subjects_main where Course='$c' && YearLevel='$d'");
										if(!$query)
										{
										die("Error in Table");
										}