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 04-30-2003 03:02 PM

install.php file
 
Can someone make one for me? it seems not to be working for me.

This has to be created:

CREATE TABLE ladder(
id int 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

flup 04-30-2003 03:04 PM

Currently this is my php code:

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>");

//Creating tabel members
$tabel = 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
                      )");
                      mysql_db_query($dbname, $tabel) or die("<font color=#cc0000>Failed to set up tabel -members-</font>");
                      echo "<font color=green>Tabel -ladder- has been set up correctly!</font><br>";
?>

It only says: failed to set up table -ladder-

flup 04-30-2003 03:05 PM

It seems to connect good to the database. else it would show me a DIE error....

colicab-d 04-30-2003 03:12 PM

yeah i had this problem ages ago it connected ok but never inserted new tables.

flup 04-30-2003 03:17 PM

and how did you solved it ?

Dean C 04-30-2003 06:10 PM

You don't need to connect to the db as that's all done for you once including global.php :)

- miSt

flup 04-30-2003 07:22 PM

I'm bussy with this as a stand-alone script now

flup 04-30-2003 09:03 PM

^^ Important :(

Dark_Wizard 05-01-2003 12:21 AM

Quote:

Today at 04:22 PM flup said this in Post #7
I'm bussy with this as a stand-alone script now
Why? This is a vBulletin forum so why don't you make it so it works with it....also, why are you worrying about an install script if you haven't completed the project? The install piece comes last.

flup 05-01-2003 11:14 AM

Ok, i'll just do it vB right away.


All times are GMT. The time now is 03:27 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.01071 seconds
  • Memory Usage 1,737KB
  • 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)bbcode_php_printable
  • (1)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