Jump to content

Recommended Posts

So I'm new to the whole MySQL and have a basic question.

I have a config file that contains the database, user and password info. This is required on all pages to connect to the database.

 

Within my 'users' table there is an 'alert' field. When I input data into this for a set user they recieve the alert.

At the moment to do this I have to go into PHPmyAdmin and manually add the message into the alerts field.

 

I'm hoping to have a page on the site where there is a drop down menu that slects the users names from the users table and then an input box to type the alert and once you press send/submit it enters the database.

 

Does anyone have any way I can do this. I've tried a few things but they've failed.

 

Link to comment
https://forums.phpfreaks.com/topic/126791-pretty-basic-question/
Share on other sites

That's more than a pretty basic question. You need a page with the select inputs that posts the data to then update the DB table.

 

It would be easier to help you if you list the code that didn't work, rather than asking for someone to write it for you. Plus, you'll learn more.

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.