PDA

View Full Version : help, having problems with includes - told you could help


RDX1
11-16-2002, 04:08 AM
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

// 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

<?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

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