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