Jump to content

Recommended Posts

Good morning everyone!

I'm a student, and I'm struggling with an assignment. Part of the trouble is that all of the PHP code is provided for me and I am mostly guessing with my understanding. I was tasked with modifying it to match my table.
I am also very inexperienced with WordPress, which doesn't help. I'm not looking for you to complete my assignment, just to give me a nudge so that I can do so.

I have attached several screenshots. My Table

help3.jpg.5f95efc38e9f4a8f594d41012faf6a33.jpg

the Code Snippet used to create the page,

help2.jpg.7863ade30f4bbb58f8c421d4a31ff5b4.jpg

and the function added to the functions.php file.

help6.jpg.182fe4344d94bbeb28534f26f13d63d4.jpg

The View Students page accurately displays data from the database.

View.jpg.632edc6622354a84028833c9d149a86a.jpg

The Add Student form allows you to complete the form, but it won't populate the database.

add.jpg.ce2a055f48ae6a6a73f68fcdd8590c63.jpg

I can do this manually through SQL, but the assignment calls for doing so using the form.

 

Thanks everyone!

 

--Exco
 

Link to comment
https://forums.phpfreaks.com/topic/315372-form-not-adding-data-to-database/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.