The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Help with a nested MySQL query!
Okay, so I'm a pretty experienced MySQL programmer, but this problem has stumped me.
I'm getting some funky results when working with a nested MySQL query. It goes something like this: Code:
$cars = $DB_site->query("SELECT * FROM cars"); while ($car = $DB_site->fetch_array($cars)) { $passengers= $DB_site->query("SELECT * FROM passengers WHERE car.id = '$car[id]'"); while ($passenger= $DB_site->fetch_array($passengers)) { // Do stuff with data // Display the data } } Has anyone encountered a similar problem to this, and does anyone have a solution? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|