Jump to content

Using MEDIUMTEXT to store site disclaimers in DB using phpmyadmin


Popgun

Recommended Posts

Hi all,

 

I have a fairly complex need to store site disclaimers in a DB, so I carved out the actual table containing the various disclaimers as follows:

 

disclaimer_ID MEDIUMINT         UNSIGNED

tos                 MEDIUMTEXT NOT NULL

legal                 MEDIUMTEXT NOT NULL

privacy         MEDIUMTEXT NOT NULL

 

This is carved out for business reasons as the disclaimer text may change and we have to track what set of disclaimers the user agreed to and when.

 

Ok well now the stupid question:

 

How do I input the disclaimer text into the mediumtext fields using PHPmyadmin? OR do I need to create a PHP page tied to this and input it via form?

 

I know this is probably a stupid question but thanks for the help in advance

 

Link to comment
Share on other sites

You can simply make a query like this in phpMyAdmin:

 

INSERT INTO disclaimer VALUES ('PUT YOUR DISCLAIMER MESSAGE HERE');

 

  • You will write your Disclaimer message inside the '
  • Change "disclaimer" to the desired table name.
     

 

BUT...as you say the disclaimer may change you better use a PHP application to update them

Link to comment
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.