Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: How do i process the list and option field form element in CRUD with jQuery and PHP

  1. #11
    Join Date
    Jan 2012
    Posts
    52
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Arrow

    Too much basic error i did in the update.php script. That is in
    Code:
    $query = "update 
                    language 
                set 
                    employeeid = :employeeid, 
                    language = :language, 
                    readlevel = :readlevel, 
                where
                    id = :id";
    Which will be like this:
    Code:
    $query = "update 
                    language 
                set 
                    employeeid = :employeeid, 
                    language = :language, 
                    readlevel = :readlevel 
                where
                    id = :id";

  2. #12
    Join Date
    Mar 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I had the exact same problem....
    What I had wrong in my code was the when I was updating I was getting the "employeeid" but not the ID of the actual row.

    Code:
    $query = "update 
                    language 
                set 
                    employeeid = :employeeid, 
                    language = :language, 
                    readlevel = :readlevel, 
                where
                    id = 1"; // try set a value of an actual ID row that you have for example 1
    If it works then the solution is easy

    Enjoy

Similar Threads

  1. making a field read only after running process
    By megha_3000 in forum JavaScript
    Replies: 1
    Last Post: 07-30-2012, 11:30 AM
  2. Replies: 1
    Last Post: 08-09-2011, 07:29 AM
  3. Is it possible to process my form in two ways?
    By theemorgandorfer in forum ASP
    Replies: 3
    Last Post: 06-10-2010, 08:27 PM
  4. Date and time stamp in form field box on a form field page
    By Embryo in forum Looking for such a script or service
    Replies: 1
    Last Post: 05-10-2008, 05:37 PM
  5. Replies: 1
    Last Post: 01-11-2008, 05:09 AM

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
  •