Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 11th, 2006, 06:55 AM
Registered User
Join Date: Mar 2006
Location: Belfast, , United Kingdom.
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

Reply With Quote
  #2 (permalink)  
Old March 11th, 2006, 09:39 AM
Friend of Wrox
Join Date: Dec 2004
Location: London, London, United Kingdom.
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts

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.
Reply With Quote
  #3 (permalink)  
Old March 12th, 2006, 09:56 AM
Registered User
Join Date: Mar 2006
Location: Belfast, , United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

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

Reply With Quote
  #4 (permalink)  
Old April 1st, 2006, 02:28 AM
Authorized User
Join Date: Mar 2006
Location: mumbai, , India.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 hugh@kmcnetwork.com 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

All times are GMT -4. The time now is 11:42 AM.

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