View Single Post
Old 12-18-2004, 02:29 PM   #1 (permalink)
bytech
Inactive
 
bytech's Avatar
 
Join Date: 10-13-03
Location: Manitoba, Canada
Posts: 573
iTrader: 0 / 0%
Latest Blog:
None

bytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nicebytech is just really nice
Send a message via Skype™ to bytech
Running PHP Program From Another PHP Program

I think there has got to be an easy solution to this one:

I have two PHP programs. One (we'll call it progy1) displays the information from a database without conditions. My other program (progy2) has been writen by me to check the database records and check to see if a record should get displayed by progy1 (progy2 goes through all the records using a loop, checks that a field matches the area the user is in, and if there is a match I do a include/require of progy2).

Both programs run fine on their own. However, the call for progy1 from progy2 causes progy1 to die after the first matching record is found, and the following error is returned:

Quote:
Warning: 1 is not a valid MySQL-Link resource in /home/site/web/poll.php on line 108

Couldn't execute query: 31
poll.php is progy2. Any ideas how I can call/run progy1 in progy2 without running into this problem?
bytech is offline   Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links