Raised This Month: $ Target: $400
 0% 

How to define variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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