Nu wil ik graag dat bijvoorbeeld alle Ryanair bij elkaar staan en alle Easyjet. Ik heb al een concept gemaakt (HTML, is toch een voorbeeldje om hier te tonen) zoals ik het graag zou willen hebben.
http://www.pro-aviation.nl/database/new/).
Ik heb echter geen flauw idee hoe ik dat kan maken.
Hieronder het script dat de resultaten laat zien:
<?php
include("conn.php");
error_reporting( E_ALL ^ E_NOTICE );
$sql = mysql_query( "SELECT * FROM fotodb ORDER BY maatschappij ASC, registratie ASC" );
$hoeveel = mysql_num_rows( $sql );
$max = 40;
$filter = $hoeveel / $max;
$round = ceil( $filter );
$begin = $_GET['page'];
if( !isset( $_GET['page'] ) or !$_GET['page'] )
$begin = 0;
// begin bij de volgende $max foto's
$begin = $begin * $max;
$sql_ophalen = mysql_query( "SELECT
*
FROM
fotodb
ORDER BY maatschappij ASC, registratie ASC
LIMIT ".$begin.", ".$max."
" ) or die( mysql_error() );
$i = 0;
//$SelectLeden = mysql_query( "SELECT * FROM fotodb ORDER BY id DESC" );
if( mysql_num_rows( $sql_ophalen ) > 0 )
{
echo "<P><b>Pagina:</b> ";
$i = 0;
while( $i <= $filter )
{
echo "<a href='index.php?page=".$i."'>" . $i . "</a> ";
$i++;
}
echo'<BR>
<BR>
<table border="0" cellpadding="0" cellspacing="" width="1024" STYLE="font-size: 12px" STYLE="border-style: solid; border-color: black; border-width: 1px;">
<tr align="center">
<td width="7%" height="12" bgcolor="7b8a8f" class="style2" id="table_border_bottom"><div align="left"> Registratie</div></td>
<td width="15%" height="12" bgcolor="7b8a8f" class="style2" id="table_border_bottom"><div align="left">Toestel</div></td>
<td width="19%" height="12" bgcolor="7b8a8f" class="style2" id="table_border_bottom"><div align="left">Maatschappij </div></td>
<td width="22%" height="12" bgcolor="7b8a8f" class="style2" id="table_border_bottom"><div align="left">Special</div></td>
<td width="4%" height="12" bgcolor="696a6a" class="style2" id="table_border4_bottom"><div align="center">Land</div></td>
<td width="4%" height="12" bgcolor="696a6a" class="style2" id="table_border4_bottom"><div align="center">Locatie</div></td>
<td width="7%" height="12" bgcolor="696a6a" class="style2" id="table_border4_bottom"><div align="center">Datum</div></td>
<td width="7%" height="12" bgcolor="696a6a" class="style2" id="table_border4_bottom"><div align="center">Jaar</div></td>
</tr>
';
while( $ObLid = mysql_fetch_assoc( $sql_ophalen ) )
{
echo'
<tr>
<td height="12" bgcolor="dfe0e0" class="style3" id="stippel"><div align="left" > '.$ObLid['registratie'].'</div></td>
<td height="12" bgcolor="dfe0e0" class="style3" id="stippel"><div align="left" > '.$ObLid['toestel'].'</div></td>
<td height="12" bgcolor="dfe0e0" class="style3" id="stippel"><div align="left" > '.$ObLid['maatschappij'].'</div></td>
<td height="12" bgcolor="dfe0e0" class="style3" id="speciaal"><div align="left" ><i>'.$ObLid['speciaal'].'</i></div></td>
<td height="12" bgcolor="bec3c3" class="style3" id="stippel" id="table_border4"><div align="center" ><IMG src="./images/vlaggen/'.$ObLid['land'].'.jpg" height="10" width="15" alt="'.$ObLid['land'].'"></div></td>
<td height="12" bgcolor="bec3c3" class="style3" id="stippel" id="table_border4"><div align="left" > '.$ObLid['locatie'].'</div></td>
<td height="12" bgcolor="bec3c3" class="style3" id="stippel" id="table_border4"><div align="center" > '.$ObLid['datum'].'</div></td>
<td height="12" bgcolor="bec3c3" class="style3" id="stippel" id="table_border4"><div align="center" > '.$ObLid['jaar'].'</div></td>
</tr>
';
}
echo'</table><BR>';
}
else
{
echo'Er zijn geen fotos geplaatst.';
}
echo "<P><b>Pagina:</b> ";
$i = 0;
while( $i <= $filter )
{
echo "<a href='index.php?page=".$i."'>" . $i . "</a> ";
$i++;
}
?>
Hier de HTML tabel uit mijn concept (voor het geval dat).
<table border="1" cellspacing="0" cellpadding="0" width="600">
<tr>
<td align="left" colspan="4">Ryanair</td>
</tr>
<tr>
<td width="12%"><B>Registratie</B></td><td width="20%"><B>Toestel</b></td><td width="40%"><B>Locatie</b></td><td width="5%"><b>Foto</b></td>
</tr>
<tr>
<td>EI-DAV</td><td>Boeing 737-800</td><td>Londen Stansted (STD/EGSS)</td><td><a href="" target="_blank">Foto</a></td>
</tr>
<tr>
<td>EI-DPD</td><td>Boeing 737-800</td><td>Londen Stansted (STD/EGSS)</td><td><a href="" target="_blank">Foto</a></td>
</tr>
<tr>
<td>EI-DWA</td><td>Boeing 737-800</td><td>Eindhoven Airport (EIN/EHEH)</td><td><a href="" target="_blank">Foto</a></td>
</tr>
<tr>
<td>EI-DWB</td><td>Boeing 737-800</td><td>Eindhoven Airport (EIN/EHEH)</td><td><a href="" target="_blank">Foto</a></td>
</tr>
</table>
<P>
<table border="1" cellspacing="0" cellpadding="0" width="600">
<tr>
<td align="left" colspan="4">Martinair</td>
</tr>
<tr>
<td width="12%"><B>Registratie</B></td><td width="20%"><B>Toestel</b><td width="40%"><B>Locatie</b></td></td><td width="5%"><b>Foto</b></td>
</tr>
<tr>
<td>PH-MPQ</td><td>Boeing 747-400</td><td>Amsterdam Schiphol (AMS/EHAM)</td><td><a href="" target="_blank">Foto</a></td>
</tr>
</table>
Kan iemand mij helpen?