Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2006, 06:55 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default reusing querys

I have a query that will return two values

these two values will be put back into the query and return two each, them these results will be put back into the query and eight results will be returned.

Problem is i dont know how to re - input the results back into the query.

i have been told to use an array but being a novice at php i dont understand what to do



 
Old March 11th, 2006, 09:39 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you have a query.. been ?? Mysql SQL query ?
you got a result which return 2 values
you put those 2 values back into the same query
which return 4 values.
whats the point ?

A bit hard to help without any kind of code.. it sounds all very secret ;)

Seriously though.. a bit more explaination ?

See to create a loop you need a reason to stop the loop.. and without any understanding of what you are trying to do.. the problem isn't the array is the condition by which the loop is broken.
 
Old March 12th, 2006, 09:56 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

nothing to secret about it

it is just a family tree that i will be outputting

so that when you select a child the child parents are returned.

i can do that

but i can not put the parents back into the query to return there parents

 
Old April 1st, 2006, 02:28 AM
Authorized User
 
Join Date: Mar 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I can't Under stand Your Problem Because
Every Time Query Gives Two Result How You Insert
These Two Result Again In The Query.I already Done These Type
Of Problem But Every Time I Got Lots Of Result But Only
One Result Again Insert Into The Query And Find Another Result
It's Done Through a Simple Php Code Plz Specify Your Problem
And If Possible Plz Send Your Query/Code

Thanks & Regards
Shekhar Srivastava






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with running different querys JAdkins Classic ASP Databases 1 November 27th, 2007 01:58 PM
Make Table & Append Querys lryckman Access 1 January 25th, 2006 05:38 PM
Reusing Images [email protected] Classic ASP Basics 0 July 19th, 2004 02:58 PM
Reusing String Arrays cebast Servlets 1 May 28th, 2004 04:11 AM
ADO object failure for larger querys rowlandc Excel VBA 0 May 5th, 2004 11:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.