Prepopulating a form

i am trying to prepopulate a form with a database, but i think i am not assigning the value properly so it is not working. in the database oone of the column is Sname.

The code below

	<label for='Sname' class='fixedwidth'> * Shop name</label>
	<input type='text' name='Sname' id='Sname' value='
&lt;?php $addprodresult = mysql_query("SELECT * FROM addingprod WHERE Uname = '{$_SESSION['username']}'") or die(mysql_error()); echo $Sname; ?&gt;


please any idea

i have sorted it