vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   install.php file (https://vborg.vbsupport.ru/showthread.php?t=52365)

flup 05-01-2003 11:19 AM

Quote:

Yesterday at 08:10 PM Mist said this in Post #6
You don't need to connect to the db as that's all done for you once including global.php :)

- miSt


So in the config.php file (wich is going to be stored in the mainforum folder) i could do:

include("./global.php");

flup 05-01-2003 11:25 AM

THe script will fully run on the vBulletin replacement sets

flup 05-01-2003 12:00 PM

I just was trying the mainpage to show up.
So i first had to run the install.php file, now, i've changed:
or die("echo .....")

to
or die(mysqL_error());

and it reply\s with:
Query was empty
:?

flup 05-01-2003 12:07 PM

Well, for now i've done it with phpmyadmin.

mr e 05-01-2003 05:06 PM

try this, not sure if it'll work, but hey :)


PHP Code:

<?
require("config.php");

mysql_connect($dbhost,$dbuser,$dbpass) or die("<font color=#cc0000>The information in config.php does not aply to the selected database, please chech your enrty</font>");

mysql_select_db($dbname) or die("Could not select database");

//Creating tabel members
mysql_query("CREATE TABLE ladder(
                      id varchar(100) NOT NULL auto_increment,
                      clanname varchar(50) NOT NULL,
                      clantag varchar(10) NOT NULL,
                      leader varchar(30) NOT NULL,
                      email varchar(40) NOT NULL,
                      website varchar(50) NOT NULL,
                      irc varchar(25) NOT NULL
                      )") or die('couldnt make table');
?>


filburt1 05-01-2003 05:07 PM

Apply has two Ps.

flup 05-01-2003 05:27 PM

???

flup 05-01-2003 05:32 PM

Quote:

Today at 07:06 PM mr e said this in Post #15
try this, not sure if it'll work, but hey :)


PHP Code:

<?
require("config.php");

mysql_connect($dbhost,$dbuser,$dbpass) or die("<font color=#cc0000>The information in config.php does not aply to the selected database, please chech your enrty</font>");

mysql_select_db($dbname) or die("Could not select database");

//Creating tabel members
mysql_query("CREATE TABLE ladder(
                      id varchar(100) NOT NULL auto_increment,
                      clanname varchar(50) NOT NULL,
                      clantag varchar(10) NOT NULL,
                      leader varchar(30) NOT NULL,
                      email varchar(40) NOT NULL,
                      website varchar(50) NOT NULL,
                      irc varchar(25) NOT NULL
                      )") or die('couldnt make table');
?>



Ok, thx, it works, but what exactly did you do?

flup 05-01-2003 05:32 PM

Nevermind, you left $tabel away......smart ;)
Now it does it directly hehe :)

mr e 05-01-2003 11:08 PM

i took out mysql_db_select as it is depreciated and added in mysql_select_db right after you connect


All times are GMT. The time now is 08:20 PM.

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.01234 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete