Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Bigboy177
Worker
Worker



Joined: Jul 07, 2004
Posts: 192

PostPosted: Fri Aug 06, 2004 10:22 am Reply with quote

I'm trying to modify a module... I've added a new function... but it doesn't display anything... It looks like everthing that is working in other functions isn't passed on to this one...

For example...
The $title from the function page() isn't remembered when I want to call it in the new function... Can someone help... How to pass info to different functions... ??
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Aug 06, 2004 12:15 pm Reply with quote

All variables in functions are private to that function unless declared otherwise. You must declare the variable as global to use it in outside of that function. See http://us3.php.net/variables.scope for more information.
 
View user's profile Send private message
Bigboy177







PostPosted: Fri Aug 06, 2004 1:34 pm Reply with quote

Thanks raven... Wink

I haven't used it this time, because I found the problem... The function preview_baza didn't work, not because the variables weren't passed to other functions, but the button was a bit wrong... it worked but when I changed it a bit... Everything started working... Thanks for all your help... Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©