Created
January 13, 2011 02:20
-
-
Save anonymous/777295 to your computer and use it in GitHub Desktop.
loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while($c1=mysql_fetch_array($result1, MYSQL_ASSOC)) { | |
$sql2 = "SELECT `COL 3`,`COL 14` FROM `TABLE 1` WHERE `COL 3` = $c0[id]"; | |
$result2 = mysql_query($sql2); | |
echo mysql_error(); | |
while($c2=mysql_fetch_array($result2, MYSQL_ASSOC)) { | |
echo "<tr><td>ID: $c2[`COL 3`] </td></td> hours: $c2[`COL 14`] </td></tr>"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment