M
mstar
hallo mit meinem code stimt was nicht. da ich erst seit kurzen php programmiere bin ich ein totaler anfänger. bitte helft mir.
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="de" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Ohne_Titel_1</title>
<style type="text/css">
body {
font-family:Arial;
color:#414141;
font-size: 12px;
}
.ueberschrift {
font-weight:bold;
}
.tb1 {
border: 1px solid #ededed;
height:25px;
}
img {
vertical-align:bottom;
margin-left:5px;
}
td {
border:1px solid #ededed;
padding-left:5px;
}
table {
margin-top:30px;
border:1px solid #D9D1CE;
padding:10px;
}
</style>
</head>
<body>
<table boclass="ueberschrift" width="900px">
<?php
$datei = "prog.txt;
$array = file($datei);
echo '<tr>'\n;
echo '<td class='tb1'>Programm:</td>'\n;
echo '<td class='tb1'>Ihre Version</td>'\n;
echo '<td class='tb1'>URL</td>'\n;
echo '<td class='tbl'>Update?</td>'\n;
echo '</tr>'\n;
echo '<tr>'\n;
echo '<td> . echo $array[0] . </td>'\n;
echo '<td> . echo $array[2] . <img height='16' src='action_delete.png' width='16' /></td>'\n;
echo '<td> . echo $array[3] . <img height='16' src='accept.png' width='16' /></td>'\n;
echo '<td>'\n;
echo '<img height='16' src='accept.png' width='16' /></td>'\n;
echo '</tr>'\n;
echo '<tr>'\n;
echo '<td>Mozilla</td>'\n;
echo '<td>. echo $array[0] . <img height='16' src='accept.png' width='16' /></td>'\n;
echo '<td>. echo $array[0] . <img height='16' src='accept.png' width='16' /></td>'\n;
echo '<td>. echo $array[0] . <img height='16' src='action_delete.png' width='16' /></td>'\n;
echo '</tr>'\n;
echo '<tr>'\n;
echo '<td>Thunderbird</td>'\n;
echo '<td>. echo $array[0] .<img height='16' src='accept.png' width='16' /></td>';
echo '<td>. echo $array[0] .<img height='16' src='accept.png' width='16' /></td>'\n;
echo '<td>. echo $array[0] .<img height='16' src='action_delete.png' width='16' /></td>'\n;
echo '</tr>'\n;
echo '<tr>'\n;
echo '<td> </td>'\n;
echo '<td> </td>'\n;
echo '<td> </td>'\n;
echo '<td> </td>'\n;
echo '</tr>'\n;
echo '</table>'\n;
?>
</body>
</html>