zapytanie poprawne w phpmyadmin sie to co chcę wyszukuje a tu nie umi !
mój kod to :
require('conn.php'); $trenmiej = mysql_query("SELECT `id` FROM `wyscigi` WHERE `miejsce` = '1' and `sesja` = '1' and `gp` = '1'"); } $trenm=$trenmiejsce[0];
require('conn.php'); $trenmiej = mysql_query("SELECT `id` FROM `wyscigi` WHERE `miejsce` = '1' and `sesja` = '1' and `gp` = '1'"); } $trenm=$trenmiejsce[0];
require('conn.php'); $trenmiej = mysql_query("SELECT `id` FROM `wyscigi` WHERE `miejsce` = '1' and `sesja` = '1' and `gp` = '1'"); $trenm=$trenmiejsce[0]; }
require('conn.php'); $trenmiej = mysql_query("SELECT `id` FROM `wyscigi` WHERE `miejsce` = '1' and `sesja` = '1' and `gp` = '1'");
$trenmiej1 = mysql_query("SELECT `kto` FROM `wyscigi` WHERE `miejsce` = '1' and `sesja` = '1' and `gp` = '1'"); $trencza1 = mysql_query("SELECT `kto` FROM `wyscigi` WHERE `miejsce` = '1' and `sesja` = '1' and `gp` = '1'"); ... echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 1 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $tremiejsce1[0] </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams1[0] </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas1[0] </td>"; ... } } }
$t=$trenmiejsce1[0] echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 1 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $t </td>
<?php $trenmiej = mysql_query("SELECT * FROM `wyscigi` WHERE `miejsce` = '1' and `sesja` = '1' and `gp` = '1'"); echo ' <table> <tr> <td width="200" height="20" background="/dok.png"> LP </td> <td width="200" height="20" background="/dok1.png"> Nazwa Gracza </td> <td width="200" height="20" background="/dok.png"> Team </td> <td width="200" height="20" background="/dok2.png"> Czas </td> </tr> <tr> <td width="200" height="20" background="/dok.png"> '.$tre['id'].' </td> <td width="200" height="20" background="/dok1.png"> '.$tre['trenmiejsce'].' </td> <td width="200" height="20" background="/dok.png"> '.$tre['teams'].' </td> <td width="200" height="20" background="/dok2.png"> '.$tre['trenczas'].' </td> </tr> </table> '; } ?>
echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> LP </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> Nazwa Gracza </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> Team </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> Czas </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 1 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $remiejsce </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams1 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas1 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 2 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce2 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams2 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas2 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 3 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce3 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams3 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas3 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 4 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce4 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams4 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas4 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 5 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce5 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams5 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas5 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 6 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce6 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams6 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas6 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 7 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce7 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams7 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas7 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 8 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce8 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams8 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas8 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 9 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce9 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams9 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas9 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 10 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce10 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams10 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas10 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 11 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce11 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams11 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas11 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 12 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce12 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams12 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas12 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 13 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce13 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams13 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas13 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 14 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce14 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams14 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas14 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 15 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce15 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams15 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas15 </td>"; echo " <td width=\"200\" height=\"20\" background=\"/dok.png\"> 16 </td> <td width=\"200\" height=\"20\" background=\"/dok1.png\"> $trenmiejsce16 </td> <td width=\"200\" height=\"20\" background=\"/dok.png\"> $teams16 </td> <td width=\"200\" height=\"20\" background=\"/dok2.png\"> $trenczas16 </td>";
<?php echo '<table> <tr> <td width="200" height="20" background="/dok.png"> LP </td> <td width="200" height="20" background="/dok1.png"> Nazwa Gracza </td> <td width="200" height="20" background="/dok.png"> Team </td> <td width="200" height="20" background="/dok2.png"> Czas </td> </tr>'; echo ' <tr> <td width="200" height="20" background="/dok.png"> '.$tre['id'].' </td> <td width="200" height="20" background="/dok1.png"> '.$tre['trenmiejsce'].' </td> <td width="200" height="20" background="/dok.png"> '.$tre['teams'].' </td> <td width="200" height="20" background="/dok2.png"> '.$tre['trenczas'].' </td> </tr> '; } ?>