vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   DB Query question (https://vborg.vbsupport.ru/showthread.php?t=94727)

Xplorer4x4 08-20-2005 10:10 PM

DB Query question
 
PHP Code:

 $users $DB_site->query(

I think this is a DB query question...I was wondering if somone might be able to tell me how I can modify this to work with vB3.5?

It is causing me this error if it helps: Call to a member function on a non-object

amykhar 08-20-2005 10:11 PM

Code:

$users = $db->query_read("

Xplorer4x4 08-21-2005 08:13 AM

Thanks amy.

Now I just have one small problem:

Parse error: parse error, unexpected $ on line 152
Line 152 is:
PHP Code:

?> 

Any suggestions?

merk 08-21-2005 11:32 PM

What is before that line?

Xplorer4x4 08-21-2005 11:35 PM

Just an empty line.

merk 08-21-2005 11:35 PM

And furthur back.

Xplorer4x4 08-21-2005 11:37 PM

PHP Code:

eval('print_output("' fetch_template('ipinfo') . '");'); 

Thats the next line up. Thanks for the help merk.

merk 08-21-2005 11:38 PM

post the last 15 lines. its generally a typo before the line that php says.

Xplorer4x4 08-21-2005 11:42 PM

PHP Code:

");

while (
$otheripinfo = $db_site->fetch_array($otherips))
{
  //print(
$otheripinfo['ipcount'] . "" . $otheripinfo['ipaddress'] . "<br/>");
  eval('
$otheripbits .= "' . fetch_template('ipinfo_otherip') . '";');
}

$db_site->free_result($otherips);

$navbits = construct_ipinfo_nav($foruminfo$threadinfo);
eval('
$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('
ipinfo') . '");');

?> 

That is the last 15 lines of code.
Thanks.

merk 08-21-2005 11:47 PM

There is nothing wrong with that code.

I suggest you look at what you've recently changed. It will generally be an extra { or } bracket.


All times are GMT. The time now is 02:39 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.01013 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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