I realize this is PHP as well as MySQL, but I had to make a judgement call on where to post the question, hope that's okay...
Is there any way to run multiple SQLQuery statements to the same array of results?
For example:
Expand|Select|Wrap|Line Numbers
- $SQLQuery = "SELECT * FROM SOMETHING WHERE SOMETHING='TRUE';";
- $result = mysql_query($SQLQuery);
- $this->numRows = mysql_numrows($result);
- // Assign all values to variables
- $i = 0;
- while ($i < numRows)
- {
- $this->something1 = mysql_result($result, $i, "SOMETHING");
- // etc...
- }
Any help would be appreciated. Thanks.