The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding mySQL forms to the ACP for future modifications
Hello,
I have been racking my brain on this for 3 days now and have tried numerous techniques to get this to work. I AM new to mySQL queries, so I know to you seasoned coders this is going to seem very remedial. I have a table I created. This is the content and how I installed it: CREATE TABLE this_data ( site_name varchar(50), site_url varchar(50), admin_email varchar(50), home_it int ); I want to make a form in the acp that allows me to enter the values for these columns. If they exist already, they will be dropped and the new value inserted. The output of these values will not be displayed. Instead, they will be placed in a settings file as variables like this (not sure if this is even correct!): PHP Code:
I know I want to create something like this: PHP Code:
I just want to be able to see a form with the fields there to add the values. When "submit" is hit, I want it to save that info in the database. If that info exists, I want the new info to replace it. I would greatly appreciate some help with this. I am really trying to learn how to do all of this but I don't/can't grasp it and I hope with some guidance I will be better capable. (Please don't post anything like "check out how other people did it, or read this site, etc.) I have been viewing how others have done it and I have been reading so many tutorials on VB and mySQL in general that my eyeballs want to explode. I am just at a point where i am utterly confused and frustrated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|