Skip to content

Instantly share code, notes, and snippets.

@apipkin
Forked from anonymous/gist:777295
Created January 13, 2011 02:23
Show Gist options
  • Save apipkin/777299 to your computer and use it in GitHub Desktop.
Save apipkin/777299 to your computer and use it in GitHub Desktop.
<?php
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