Ich wollte mich mal hier anhängen, weil ich keinen eigenen Thread aufmachen wollte.
Ich würde auch gerne ein php script einbinden, jedoch muss ich sagen das ich nicht grad der php freak bin, sondern eher anfänger bin.
Ich habe die datei zwar schon einbinden können, jedoch war dann nur die php datei zu sehen und das drum herum wie header und menü (also quasi das ganze design) ist dann weg.
Vielleicht kann sich einer der php profis sich das mal ansehen und mir nen tip geben wie ich die datei einbinden kann ohne wrapper zu nutzen (da durch den iframe die suchmaschienen den inhalt ignorieren)?
Hier der code:
PHP-Code:
<?php
include_once( "functions.php" );
$MARKE = $_GET['marke'];
?>
<P ALIGN=CENTER><A NAME="#145"></A></P>
<P ALIGN=CENTER><table width="75%" border="1" align="center" BGCOLOR="#808080" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#808080">
<TR>
<TD VALIGN=TOP WIDTH="25%" HEIGHT=16>
<P ALIGN=CENTER class="Stil4"><B><FONT FACE="Arial">Fahrzeug Hersteller</FONT></B></P></TD>
<TD VALIGN=TOP WIDTH="25%" HEIGHT=16>
<P ALIGN=CENTER class="Stil4"><B><FONT FACE="Arial">Fahrzeugtyp</FONT></B></P></TD>
<TD VALIGN=TOP WIDTH="25%" HEIGHT=16>
<P ALIGN=CENTER class="Stil4"><B><FONT FACE="Arial">Modell</font></b></P></TD>
<TD VALIGN=TOP WIDTH="25%" HEIGHT=16>
<P ALIGN=CENTER class="Stil4"><B><FONT FACE="Arial">Datenblatt</FONT><FONT FACE="Arial"></FONT></B></P></TD>
</TR>
<?php
if ( !is_file( "$MARKE.csv" ) )
{
echo( "Diese Marke ist nicht verfügbar." );
exit;
}
$lines = file( "$MARKE.csv" );
for ( $i = 1; $i < count( $lines ); $i++ )
{
if ( strlen( $lines[$i] ) > 5 )
{
echo( "<TR>" );
echo( " <TD VALIGN=TOP>" );
echo( " <P ALIGN=CENTER><FONT COLOR=\"#FFFFFF\"><B>" . csv_get_row( $lines[$i], 1 ) . "</B></FONT></P></TD>" );
echo( " <TD VALIGN=TOP>" );
echo( " <P ALIGN=CENTER><FONT COLOR=\"#FFFFFF\"><B>" . csv_get_row( $lines[$i], 3 ) . "</B></FONT></P></TD>" );
echo( " <TD VALIGN=TOP>" );
echo( " <P ALIGN=CENTER><FONT COLOR=\"#FFFFFF\"><B>" . csv_get_row( $lines[$i], 2 ) . "</B></FONT></P></TD>" );
echo( " <TD VALIGN=TOP>" );
echo( " <P ALIGN=CENTER><a HREF=\"file.php?marke=$MARKE&id=$i\" TARGET=\"_self\"><B><font color=\"#990000\">Datenblatt" );
echo( " </font></B></a></P></TD>" );
echo( "</TR>" );
}
}
?>
LG
Solarus
Lesezeichen