vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   help, having problems with includes - told you could help (https://vborg.vbsupport.ru/showthread.php?t=45779)

RDX1 11-16-2002 04:08 AM

help, having problems with includes - told you could help
 
i was told you had a hack that could help me with this -


ok so this is my include file and im using php ads new

Code:

// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
include("vbs_counter.php");
ob_start();
require('side.php');
$side = ob_get_contents();
ob_end_clean();
ob_start();
require('ads.php');
$ads = ob_get_contents();
ob_end_clean();

this is ads.php

Code:

<?php
    require(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php');
    if (!isset($phpAds_context)) $phpAds_context = array();
    $phpAds_id = view ('', 1, '_blank', '', '1', $phpAds_context);
?>

i put $ads in my header and i get this error

Quote:

Database error in vBulletin *CENSORED*:

Invalid SQL: SELECT * FROM usergroup WHERE usergroupid=6
mysql error: Table 'nerdnati_ads.usergroup' doesn't exist

mysql error number: 1146

Date: Friday 15th of November 2002 03:17:33 AM
Script: http://nerdnations.com/bbs/bbs/
Referer:

RDX1 11-17-2002 04:43 AM

anyone? i really need this

zajako 11-17-2002 06:55 AM

hmm it looks liek you might have something censored in that or something. instant message me at zajako2 ill take a look.

RDX1 11-17-2002 05:52 PM

i was told that phpadsnew didnt close connections so thats what im looking for

okrogius 11-17-2002 11:20 PM

Try adding mysql_close() before ob_end_clean().

RDX1 11-19-2002 02:21 AM

// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
include("vbs_counter.php");
ob_start();
require('side.php');
$side = ob_get_contents();
ob_end_clean();
ob_start();
require('ads.php');
$ads = ob_get_contents();
mysql_close();
ob_end_clean();

and still same problems


All times are GMT. The time now is 02:59 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.01461 seconds
  • Memory Usage 1,718KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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