SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    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
    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

  2. #2
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    i have sorted it


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •