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
Code:
<div>
	<label for='Sname' class='fixedwidth'> * Shop name</label>
	<input type='text' name='Sname' id='Sname' value='
PHP Code:
<?php $addprodresult mysql_query("SELECT * FROM addingprod WHERE Uname = '{$_SESSION['username']}'") or die(mysql_error()); echo $Sname?>
'/> </div>
please any idea