Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > php/mysql question.

php/mysql question.
Thread Tools
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
May 23, 2002, 11:04 PM
 
Here's the deal: I want to take a value created in one function and pass it to another. How the hell do I do that? I'm so frustrated with this I'm about to go crazy. It seems like it should be so simple.

Basically, the situation is this: I'm creating a web application that allows the administrator of the site to make changes to the content presented on a page. They pick the page they want to edit and then they are given the paragraphs to edit. When they submit their changes, $PHP_SELF is called and another function is executed. (Based on a switch statement and the value passed from the form.) The trick is that there can be any number of paragraphs (the rows in my table) per page so function 2 doesn't know how many times to execute the update statement. I need to get function 1 to tell function 2 that there are X paragraphs that are going to be edited. Right now I'm just using a hidden value with the number of paragraphs to communicate between the functions, but there must be a better way. I could always get the value outside of function 1 by rerunning my query, but it seems that it would be an extra query to run. Is there any way to do this? TIA.
     
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
May 27, 2002, 03:26 PM
 
Aw, come on, no one knows the answer to this question? Would it help if I said please? Pretty please?
     
Fresh-Faced Recruit
Join Date: Sep 2000
Location: Overland Park, KS
Status: Offline
Reply With Quote
May 29, 2002, 04:22 PM
 
Send me your code for the page and I will try to help you. I think I understand what you are trying to do. But its always easier for me to actually see it.

Kelby
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2