FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Nested SQL queries?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Nested SQL queries? [message #20907] Tue, 02 November 2004 00:24 Go to next message
Abraxa is currently offline  Abraxa   Germany
Messages: 72
Registered: August 2004
Location: Germany
Karma: 0
Member
Heya =)

I was wondering if it's possible to nest SQL queries:
Due to modifications in the message drawing template I need to gather additional data for drawing the messages. If I however do an SQL query in drawmsg.inc.t, the loop in msg.php.t that loops through the results of the big SQL query breaks.

Is there any way to quest SQL queries - as in doing an SQL query while the results of a previous query aren't fully processed yet?

-Abraxa
Re: Nested SQL queries? [message #20909 is a reply to message #20907] Tue, 02 November 2004 00:34 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to change the query execution function from uq() to q(), the former is an unbuffered query, which means a new query will trash the not yet retreieved rows.

FUDforum Core Developer
Re: Nested SQL queries? [message #20918 is a reply to message #20907] Tue, 02 November 2004 13:07 Go to previous message
Abraxa is currently offline  Abraxa   Germany
Messages: 72
Registered: August 2004
Location: Germany
Karma: 0
Member
Thank you! =)

-Abraxa
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Egsclub Message board problem
Next Topic: Pre_req wording file
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 18:32:31 GMT 2024

Total time taken to generate the page: 0.02579 seconds