vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   adding statements to the database (https://vborg.vbsupport.ru/showthread.php?t=43004)

Marty McFly 08-31-2002 06:33 PM

adding statements to the database
 
im trying to add on to karatekid's banner hack, and in the instructions it tells me:

----------------------------------
####
a) # Do the following statement on your vb-database:
####

ALTER TABLE forum ADD banner_id int(11) not null AFTER styleoverride
----------------------------------

how do i add statements to my database? thx in advance.

filburt1 08-31-2002 06:35 PM

One of the three:

1. Use (IIRC Chen's) hack that lets you execute MySQL statements from the admin CP
2. SSH/Telnet into your site, and type mysql -uusername -ppassword dbname where username, password, and dbname are their respective values in vB's config.php
3. Install PMA (http://phpmyadmin.sourceforge.net/) and use it.

filburt1 08-31-2002 06:36 PM

Also if you typed your query surrounded by [sql] tags, you'd see this ;):

[sql]ALTER TABLE forum ADD banner_id int(11) not null AFTER styleoverride[/sql]

Marty McFly 08-31-2002 06:39 PM

ok, i have the CP sql hack installed....but i dont really know how to use it. do i just put that statement into the The Query You Want To Run window?

Chris M 08-31-2002 06:47 PM

Yes...

Satan

Boofo 08-31-2002 07:12 PM

And hit enter. :)

filburt1 08-31-2002 07:20 PM

Then get a hot dog and pat yourself on the back. :)

Jeez :p

Marty McFly 08-31-2002 07:40 PM

cool it worked...thanks for the help.


All times are GMT. The time now is 07:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete