Raised This Month: $ Target: $400
 0% 

How to define variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wwzw
Member
Join Date: Feb 2009
Old 12-01-2011 , 19:47   How to define variable
Reply With Quote #1

Runtime error: see the code
PHP Code:
public sql_init()
{
   ......
   new 
Query[2048]
   ......
   
load_other()
   ......
}
load_other()
{
   ......
   new 
oQuery[2048]           //Error in this line
   
......

I modified the case, then no error:

PHP Code:
new Query[2048]
public 
sql_init()
{
   ......
 
   ......
   
load_other()
   ......
}
load_other()
{
   ......
 
   ......

Why? I can not define very variable?
Please advise!

Last edited by wwzw; 12-01-2011 at 19:48.
wwzw is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-02-2011 , 00:11   Re: How to define variable
Reply With Quote #2

I think something else is causing the error. Show the WHOLE code.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode