Results 1 to 3 of 3

Thread: Change formats of MySQL database variables?

  1. #1
    Join Date
    Oct 2007
    Posts
    31

    Default Change formats of MySQL database variables?

    Is it possible to modify the formats of varaibles in the MySQL database? For example to reformat variable "title" in table "idx_link" from varchar(100) to varchar(200) ? This is quickly done in phpMyAdmin but are there any negative impacts on IndexU and/or which scripts need to be modified?

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Yes it is possible to change the values in mysql. But just as a note they are not called variables, variables only exist in PHP (or other programming language).

    Nothing else needs to be modified that I know of.

  3. #3
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by kleinhev View Post
    Is it possible to modify the formats of varaibles in the MySQL database? For example to reformat variable "title" in table "idx_link" from varchar(100) to varchar(200) ? This is quickly done in phpMyAdmin but are there any negative impacts on IndexU and/or which scripts need to be modified?
    as per brucepr, they are called columns (and are grouped in rows of the table). Back in the old days, such things were referred to as fields of the record and records were stored in a file. Big advancement there.

    In general, the only thing that I can think of is if a input form uses a "text" field with a maxlength attribute. "Textarea" fields don't have a limit unless you use something like javascript to limit the number of characters.

    I don't recall any displayed pages that restrict the number of displayed characters but I really have looked at all of the html code in v5.4.

    also, the template may be designed on the basis of only a certain number of characters. If you change the number of characters, it may "mess up" the look of the displayed page.

    one last note. if you reinstall INDEXU, it will use the original field information unless you change the install code.

    and you should check any future updates if you choose to upgrade to a later version. You would need to check the install code of the upgrade to see if any fields (columns) you have changed are changed in the upgrade. There may or may not be a problem.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. URL/formats
    By Bren in forum Blocks and Modification
    Replies: 3
    Last Post: 12-04-2007, 12:52 AM
  2. Many directory sites for one MySQL database
    By Mickey in forum Blocks and Modification
    Replies: 1
    Last Post: 05-15-2007, 08:02 PM
  3. from Mysql 3 to Mysql 5, problems!
    By minder in forum Indexu Lite
    Replies: 1
    Last Post: 05-29-2006, 01:08 AM
  4. Replies: 0
    Last Post: 11-22-2005, 09:04 AM
  5. Change to data in database
    By morgankd in forum v5.x
    Replies: 1
    Last Post: 06-24-2004, 01:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •