1
sgshell
How to add field into the sql of xoops?
  • 2004/11/8 1:11

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


Do anyone know how to add extra field into the sql table of xoops...I like it to add the extra field i create when installation.

For example to add a extra field for country:

when i try to insert the code into XOOPS sql

country varchar(100) NOT NULL default <====this do not work...

Also, how to insert extra field into table after the table is created? pls let me know the sql command to do so...thks

2
Dave_L
Re:How to add field into the sql of xoops?
  • 2004/11/8 1:53

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Here's an example:

ALTER TABLE xoops_users ADD country VARCHAR(100) DEFAULT 'New Zorkland' NOT NULL;


What tool are you using to execute the query?

3
sgshell
Re:How to add field into the sql of xoops?
  • 2004/11/8 15:22

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


thks...I using phpmyadmin

4
tedsmith
Re:How to add field into the sql of xoops?
  • 2004/11/8 15:30

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I'm also interested in doing this. I want to add a drop down menu full of all the counties of the UK when using the MyAlbum modules. On the page where people submit pictures and add a description, I want the drop down menu to appear in there for the user to select, and of course this needs to be connected to the database.

Can anyone tell me how to do that? I'll also need to know how to update the html side of things so that the menu is displayed. Is there somewhere I should read that would tell me this or is it actually really simple?

Would I be best starting a seperate post? I think the two are so closely linked I don't think two seperate one's are necessary, but still....

Thanks

Ted

5
tedsmith
Re:How to add field into the sql of xoops?
  • 2004/11/9 20:51

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


**bump**

Login

Who's Online

334 user(s) are online (239 user(s) are browsing Support Forums)


Members: 0


Guests: 334


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits