Jump to content
solution

Help needed in php serial pin generation.

Recommended Posts

Please i have successful created an online form that student can use to submit their into our database... the form consist of the following field... first name, last name, age, , course, scratch card pin. in the scratch card pin, student will have to purchase scratch card from the school and enter it into the scratch card field and if it correspond with any of the pins in the scratch card column it will submit the data on the line that the pin match...i need help in achieving this, i'm a begginer in php... THANKS.

Share this post


Link to post
Share on other sites

Do you have any code so far? If you have questions then we can help you figure things out, but we aren't going to write all of the code for you.

Share this post


Link to post
Share on other sites

Not at all, just the /Form.html and /Submit.php And Are Both Working Perfectly Well... I Want To Add A Field to Form.html and it wil be for the "Serial Pin" which has already been inserted into a column name "Pin" by me. now when submiting the form all i want to do is to validate the pin with the one in the database table column name "pin" if it correspond then every other input should after validation should all be submitted to the row or take the row to which pin corresponds.

Share this post


Link to post
Share on other sites

You can send a select query to look up something in the database, and if it exists then you can use update to update that row with new data.

Share this post


Link to post
Share on other sites

What do you have in the PHP file so far? You said it's working perfectly well, so what is it doing? What code are you using? You're already using the database, right?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...