The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need assistance with form creation in the ACP
Hello,
(This is a double post because it classifies as both a mySQL question as well as a modification question. If one forum is better suited for this question over the other, I would appreciate it if a moderator would merge the 2 posts in the appropriate forum.) 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. I am a pupil awaiting a teacher. I am showing some initiative here, so help me! lol |
#2
|
||||
|
||||
Hello,
I have learned a lot in the past 3 days. lol I have my forms almost completely worked out now. I am trying to get this to display the inserted content but also change it if it is changed. This is what I have in my file, but i am missing something or wrote something wrong. It doesn't update the info and I don't know why. PHP Code:
I thought that what I have written would work, but it doesn't. What did I miss or do incorrectly? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|