The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
There are a few things wrong:
- You are using $_REQUEST, please stick to $_POST or $_GET. Depending on which one you use. - You don't wrap your variables in single quotes, will not work without that. - You don't escape your variables, SQL injection will be possible. - Your INSERT query contained "INSERT INTO TABLE", that's not valid. In case you use $_POST, you can do something like: PHP Code:
PHP Code:
|
Благодарность от: | ||
KGodel |
#12
|
||||
|
||||
Hey Dave! I made your changes and the SQL write still isn't working. I get a blank screen when I click submit and nothing changes in the table. No error is sent to my email inbox either.
|
#13
|
|||
|
|||
Add the following above the query_write execution:
PHP Code:
|
#14
|
||||
|
||||
It isn't even showing an SQL query.
|
#15
|
||||
|
||||
If it isn't even showing the query, then try adding something like this above the second if statement:
echo $_GET['game']; (actually, try echoing all three of your $_GET variables) |
Благодарность от: | ||
KGodel |
#16
|
||||
|
||||
I actually had both parts working (adding and removing). The adding part worked after I manually added the first row to the database. I tried the remove function and removed the first row, and now it won't add it again. Does the first key always have to be 1? Do I have to update keys?
Edit: Seemed to be an error with the insert query. All fixed! Now could someone tell me how to add it to the menu in the ACP and create an admin permission for it? Edit: Figured that out too. Now I will link it to the main result. Thank you to the few people who helped me in this thread with genuine advice! PHP Code:
Correction, it is letting me add SOME games, but not others. I do not know why. --------------- Added [DATE]1403743899[/DATE] at [TIME]1403743899[/TIME] --------------- The error occurs whenever I do not change one of the drop down menus. It seems like it isn't being sent as if its selected, so it is causing an error. EDIT: To fix I simply added a blank option at the start of each menu. Worked like a charm. Edit: Added an image to see it working. ^^ |
Благодарность от: | ||
Lynne |
#17
|
||||
|
||||
Awesome KGodel!!!! I received your pm and came to check - glad to see you kept on tinkering until you figured it out with the help of a few others of course so props to them as well but I'm thrilled for you .
Now what's next? Remember that sometimes banging your head against a brick walls helps you remember the issue and resolution afterwards and also prepares you for the next step on your forum (typically) so find something else you want done and have at it! |
#18
|
||||
|
||||
Well, instead of using a page-plugin, I like to move the roster to is own page and maybe even release this as a mod to the community (eventually). This was the biggest thing we wanted to do so I don't know what else I'll do now, I'm just enjoy this (I have it open in a tab just to look at it, lol).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|