User Profile

Collapse

Profile Sidebar

Collapse
nenana
nenana
Last Activity: Mar 19 '11, 07:53 AM
Joined: Feb 27 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nenana
    replied to error in your SQL syntax
    in PHP
    I dont know you are new at php.If you are;

    alter is being used to add new rows.in your case, update or insert must be the solution.
    First, try to initialize variables and be sure you are getting the names by post.Post will return you the values and values will be assigned the variables.
    Second, if you want to insert values to table:
    Code:
    $sql="INSERT INTO Blad1 (Naam, Inkoop, Verkoopprijs, Aantal, Verkocht) VALUES ('$naamveld',
    ...
    See more | Go to post

    Leave a comment:


  • nenana
    started a topic Can I post an array for 'submit'?
    in PHP

    Can I post an array for 'submit'?

    Hi all,

    I am writing a test system.I want to post question id and selected answer id(I used radiobuttons), when user clicks on the 'Submit' button.Also I want same for the 'Next' and 'Back' buttons.
    I am not entirely sure that I did correct.Here is the code
    Code:
    .....
    {
    for ($i = 0; $i < count($query); $i++) {
    
                    $qid = $query[$i][0];
    ...
    See more | Go to post
No activity results to display
Show More
Working...