SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2005
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question mysql table to recognise an edit??

    I have been working on an edit page, which is finally working. What I am finding now is that once the edit has been done and you refresh the table the column where the username is stored goes blank.

    Can anyone point me in the right direction?

    Many thanks

    Vonz

  2. #2
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Echo your query out to make sure the username is set, e.g,
    $sql = "UPDATE foo SET username='$username' WHERE whatever='something'";
    echo $sql;

    If it's not set then trace it back by placing echo's at certain points to find the point where it should be being set but isn't.


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
  •