Hallo,
Ik ben bezig met een scriptje, maar ik krijg wat ik ook doe een foutmelding:
PHP
Warning: fopen(http://http://reganijkerk.nl/uitslagen/uit/jrega2.pdf) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/ttvrega/domains/reganijkerk.nl/public_html/myinc.php on line 342
Warning: fpassthru() expects parameter 1 to be resource, boolean given in /home/ttvrega/domains/reganijkerk.nl/public_html/myinc.php on line 343
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ttvrega/domains/reganijkerk.nl/public_html/myinc.php on line 344
Warning: sort() expects parameter 1 to be array, null given in /home/ttvrega/domains/reganijkerk.nl/public_html/myinc.php on line 408
Nou heb ik de volgende scripts:
uitslagen.php:
PHP
<?php
session_start();
include "includes/header.php";
include "includes/menu.php";
echo '<div id="content">
<div class="content_box">
';
$uit = 0;
if($uit == 0){
if(ctype_digit($_GET['id'])){
$res_rega = mysql_query("SELECT id, teamnaam, klasse, leeftijdsgroep, pid FROM regateams WHERE id='".strip_tags(mysql_real_escape_string($_GET['id']))."' ORDER BY teamnaam");
if(mysql_num_rows($res_rega) == 1){
$sel_rega = mysql_fetch_array($res_rega);
?>
<link rel="stylesheet" type="text/css" media="all" href="test/Style Sheets/tekstOpmaak.css">
<link rel="stylesheet" type="text/css" media="all" href="test/Style Sheets/S_teams.css">
<?php
### URL list ###
# persoonlijke resultaten
$urlPers = 'http://reganijkerk.nl/uitslagen/per/'.$sel_rega['pid'].'.txt';
# pdf file met uitslagen
$urlTeam = 'http://reganijkerk.nl/uitslagen/uit/'.$sel_rega['pid'].'.pdf';
require_once("myinc.php");
?>
<div id="textBox">
<h1><?php echo $sel_rega['teamnaam'].' ('.$sel_rega['leeftijdsgroep'].')'; ?></h1>
<h3 id="standenTitle">Tussenstand</h3>
<?php
echo $tblStanden;
echo $bron;
?>
<br /><br />
<h3 id="schemaTitle">Speelschema</h3>
<?php
echo "<a target='_blank' href='" . $urlTeam . "'><img alt='' src='images/download.png' style='margin-bottom:-3px' border='0'> Download het actuele speelschama (pdf)</a><br /><br />";
echo $tblWedstrijden;
echo $bron;
?>
<br /><br />
<h3 id="persResultTitle">Persoonlijke resultaten</h3>
<?php
echo "<a target='_blank' href='" . $urlPers . "'><img alt='' src='images/download.png' style='margin-bottom:-3px' border='0'> Download de persoonlijke resultaten (txt)</a><br /><br />";
echo $tblPersResult;
echo $bron;
?>
<br /><br />
<h3 id="adresTitle">Adressen en telefoonnummers</h3>
<?php
echo $tblAdressen;
?>
<div style="clear:both"><br /></div>
</div>
<?php
} else{
echo '
<h1>Team niet gevonden</h1>
Dit team is niet bij Rega gevonden.<br />
<a href="uitslagen.php">Keer terug</a>
';
}
} else{
echo '<h1>Uitslagen</h1>';
echo '<h2>Jeugd</h2>';
$res_rega = mysql_query("SELECT id, teamnaam, klasse FROM regateams WHERE leeftijdsgroep='jeugd' ORDER BY teamnaam ASC");
while($sel_rega = mysql_fetch_array($res_rega)){
echo '<a href="uitslagen.php?id='.$sel_rega['id'].'"><b>» '.$sel_rega['teamnaam'].' ('.$sel_rega['klasse'].')</b></a><br />';
}
echo '<h2>Senioren</h2>';
$res_rega = mysql_query("SELECT id, teamnaam, klasse FROM regateams WHERE leeftijdsgroep='senioren' ORDER BY teamnaam ASC");
while($sel_rega = mysql_fetch_array($res_rega)){
echo '<a href="uitslagen.php?id='.$sel_rega['id'].'"><b>» '.$sel_rega['teamnaam'].' ('.$sel_rega['klasse'].')</b></a><br />';
}
echo '<br />';
}
} else{
echo '<b>Tijdelijk:</b><br /><iframe src="http://www.nttb-midden.nl/comp/comp-nas.html" height="1200px" width="100%"></iframe>';
}
include "includes/footer.php";
echo '
</div>
</div>
</div>
</body>
</html>';
?>
Toon Meer
myinc.php:
PHP
<?php
#### inlezen txt file ####
if (!defined("ch")){
function setupch(){
$ch = curl_init();
$c = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
return($ch);
}
define("ch", setupch());
function curl_get_contents($url){
$c = curl_setopt(ch, CURLOPT_URL, $url);
return(curl_exec(ch));
}
}
#### inlezen pdf file ####
#### bron: http://www.webcheatsheet.com/php/reading_clean_text_from_pdf.php ####
function decodeAsciiHex($input) {
$output = "";
$isOdd = true;
$isComment = false;
for($i = 0, $codeHigh = -1; $i < strlen($input) && $input[$i] != '>'; $i++) {
$c = $input[$i];
if($isComment) {
if ($c == '\r' || $c == '\n')
$isComment = false;
continue;
}
switch($c) {
case '\0': case '\t': case '\r': case '\f': case '\n': case ' ': break;
case '%':
$isComment = true;
break;
default:
$code = hexdec($c);
if($code === 0 && $c != '0')
return "";
if($isOdd)
$codeHigh = $code;
else
$output .= chr($codeHigh * 16 + $code);
$isOdd = !$isOdd;
break;
}
}
if($input[$i] != '>')
return "";
if($isOdd)
$output .= chr($codeHigh * 16);
return $output;
}
function decodeAscii85($input) {
$output = "";
$isComment = false;
$ords = array();
for($i = 0, $state = 0; $i < strlen($input) && $input[$i] != '~'; $i++) {
$c = $input[$i];
if($isComment) {
if ($c == '\r' || $c == '\n')
$isComment = false;
continue;
}
if ($c == '\0' || $c == '\t' || $c == '\r' || $c == '\f' || $c == '\n' || $c == ' ')
continue;
if ($c == '%') {
$isComment = true;
continue;
}
if ($c == 'z' && $state === 0) {
$output .= str_repeat(chr(0), 4);
continue;
}
if ($c < '!' || $c > 'u')
return "";
$code = ord($input[$i]) & 0xff;
$ords[$state++] = $code - ord('!');
if ($state == 5) {
$state = 0;
for ($sum = 0, $j = 0; $j < 5; $j++)
$sum = $sum * 85 + $ords[$j];
for ($j = 3; $j >= 0; $j--)
$output .= chr($sum >> ($j * 8));
}
}
if ($state === 1)
return "";
elseif ($state > 1) {
for ($i = 0, $sum = 0; $i < $state; $i++)
$sum += ($ords[$i] + ($i == $state - 1)) * pow(85, 4 - $i);
for ($i = 0; $i < $state - 1; $i++)
$ouput .= chr($sum >> ((3 - $i) * 8));
}
return $output;
}
function decodeFlate($input) {
return @gzuncompress($input);
}
function getObjectOptions($object) {
$options = array();
if (preg_match("#<<(.*)>>#ismU", $object, $options)) {
$options = explode("/", $options[1]);
@array_shift($options);
$o = array();
for ($j = 0; $j < @count($options); $j++) {
$options[$j] = preg_replace("#\s+#", " ", trim($options[$j]));
if (strpos($options[$j], " ") !== false) {
$parts = explode(" ", $options[$j]);
$o[$parts[0]] = $parts[1];
} else
$o[$options[$j]] = true;
}
$options = $o;
unset($o);
}
return $options;
}
function getDecodedStream($stream, $options) {
$data = "";
if (empty($options["Filter"]))
$data = $stream;
else {
$length = !empty($options["Length"]) ? $options["Length"] : strlen($stream);
$_stream = substr($stream, 0, $length);
foreach ($options as $key => $value) {
if ($key == "ASCIIHexDecode")
$_stream = decodeAsciiHex($_stream);
if ($key == "ASCII85Decode")
$_stream = decodeAscii85($_stream);
if ($key == "FlateDecode")
$_stream = decodeFlate($_stream);
}
$data = $_stream;
}
return $data;
}
function getDirtyTexts(&$texts, $textContainers) {
for ($j = 0; $j < count($textContainers); $j++) {
if (preg_match_all("#\[(.*)\]\s*TJ#ismU", $textContainers[$j], $parts))
$texts = array_merge($texts, @$parts[1]);
elseif(preg_match_all("#Td\s*(\(.*\))\s*Tj#ismU", $textContainers[$j], $parts))
$texts = array_merge($texts, @$parts[1]);
}
}
function getCharTransformations(&$transformations, $stream) {
preg_match_all("#([0-9]+)\s+beginbfchar(.*)endbfchar#ismU", $stream, $chars, PREG_SET_ORDER);
preg_match_all("#([0-9]+)\s+beginbfrange(.*)endbfrange#ismU", $stream, $ranges, PREG_SET_ORDER);
for ($j = 0; $j < count($chars); $j++) {
$count = $chars[$j][1];
$current = explode("\n", trim($chars[$j][2]));
for ($k = 0; $k < $count && $k < count($current); $k++) {
if (preg_match("#<([0-9a-f]{2,4})>\s+<([0-9a-f]{4,512})>#is", trim($current[$k]), $map))
$transformations[str_pad($map[1], 4, "0")] = $map[2];
}
}
for ($j = 0; $j < count($ranges); $j++) {
$count = $ranges[$j][1];
$current = explode("\n", trim($ranges[$j][2]));
for ($k = 0; $k < $count && $k < count($current); $k++) {
if (preg_match("#<([0-9a-f]{4})>\s+<([0-9a-f]{4})>\s+<([0-9a-f]{4})>#is", trim($current[$k]), $map)) {
$from = hexdec($map[1]);
$to = hexdec($map[2]);
$_from = hexdec($map[3]);
for ($m = $from, $n = 0; $m <= $to; $m++, $n++)
$transformations[sprintf("%04X", $m)] = sprintf("%04X", $_from + $n);
}
elseif (preg_match("#<([0-9a-f]{4})>\s+<([0-9a-f]{4})>\s+\[(.*)\]#ismU", trim($current[$k]), $map)) {
$from = hexdec($map[1]);
$to = hexdec($map[2]);
$parts = preg_split("#\s+#", trim($map[3]));
for ($m = $from, $n = 0; $m <= $to && $n < count($parts); $m++, $n++)
$transformations[sprintf("%04X", $m)] = sprintf("%04X", hexdec($parts[$n]));
}
}
}
}
function getTextUsingTransformations($texts, $transformations) {
$document = "";
for ($i = 0; $i < count($texts); $i++) {
$isHex = false;
$isPlain = false;
$hex = "";
$plain = "";
for ($j = 0; $j < strlen($texts[$i]); $j++) {
$c = $texts[$i][$j];
switch($c) {
case "<":
$hex = "";
$isHex = true;
break;
case ">":
$hexs = str_split($hex, 4);
for ($k = 0; $k < count($hexs); $k++) {
$chex = str_pad($hexs[$k], 4, "0");
if (isset($transformations[$chex]))
$chex = $transformations[$chex];
$document .= html_entity_decode("&#x".$chex.";");
}
$isHex = false;
break;
case "(":
$plain = "";
$isPlain = true;
break;
case ")":
$document .= $plain;
$isPlain = false;
break;
case "\\":
$c2 = $texts[$i][$j + 1];
if (in_array($c2, array("\\", "(", ")"))) $plain .= $c2;
elseif ($c2 == "n") $plain .= '\n';
elseif ($c2 == "r") $plain .= '\r';
elseif ($c2 == "t") $plain .= '\t';
elseif ($c2 == "b") $plain .= '\b';
elseif ($c2 == "f") $plain .= '\f';
elseif ($c2 >= '0' && $c2 <= '9') {
$oct = preg_replace("#[^0-9]#", "", substr($texts[$i], $j + 1, 3));
$j += strlen($oct) - 1;
$plain .= html_entity_decode("&#".octdec($oct).";");
}
$j++;
break;
default:
if ($isHex)
$hex .= $c;
if ($isPlain)
$plain .= $c;
break;
}
}
$document .= "\n";
}
return $document;
}
function pdf2text($filename) {
#$infile = @file_get_contents($filename, FILE_BINARY);
$infile = $filename;
if (empty($infile))
return "";
$transformations = array();
$texts = array();
preg_match_all("#obj(.*)endobj#ismU", $infile, $objects);
$objects = @$objects[1];
for ($i = 0; $i < count($objects); $i++) {
$currentObject = $objects[$i];
if (preg_match("#stream(.*)endstream#ismU", $currentObject, $stream)) {
$stream = ltrim($stream[1]);
$options = getObjectOptions($currentObject);
if (!(empty($options["Length1"]) && empty($options["Type"]) && empty($options["Subtype"])))
continue;
$data = getDecodedStream($stream, $options);
if (strlen($data)) {
if (preg_match_all("#BT(.*)ET#ismU", $data, $textContainers)) {
$textContainers = @$textContainers[1];
getDirtyTexts($texts, $textContainers);
} else
getCharTransformations($transformations, $data);
}
}
}
return getTextUsingTransformations($texts, $transformations);
}
#### VERWERKING TXT file ####
#### Made by MvE - designed for TVO ####
#### www.tafeltennisverenigingoosterhout.nl ####
#### (c) 2011 - versie 1.1 ####
##Ophalen van persoonlijke resultaten
$persResult = utf8_encode(curl_get_contents($urlPers));
#Resultaten opsplitsen in regels
$persResultSplit = explode("\r\n", $persResult);
#De regels opsplitsen in cellen, de cellen scheiden met een ';'
$persResultSplit = preg_replace('/\s{2,}/',';', $persResultSplit);
## ALGEMEEN ##
#Gegevensbron + tijd
$bron = "<span class='comment'><br>---------------------------------------------------------------------------------------------<br>" .
"Bron: http://www.nttb-competitie.nl | Realtime competitiegegevens<br>" .
ucfirst(preg_replace(array('/(\()/','/(\))/'), "", $persResultSplit[1])) . "</span>";
#TBL - persoonlijke resultaten + titel
#title output
if ($persResultSplit[4] == "Er zijn geen persoonlijke resultaten gevonden binnen uw selectie!")
$tblPersResult = "<strong>" . $persResultSplit[0] . "<br>Er zijn geen persoonlijke resultaten gevonden!</strong><br>";
else{
$tblPersResult = "<strong>" . $persResultSplit[0] . " - " . $persResultSplit[4] . "</strong><br><br>";
#table output
$tblPersResult .= "<table id='persResult' cellspacing='0'>" .
"<tr class='tabelKop'><th class='bnr'>Bondsnr.</th><th class='spacer'></th><th class='naam'>Naam</th><th class='spacer'></th><th class='vereniging'>Team</th><th class='spacer'></th><th class='G'>G</th><th class='W'>W</th><th class='procent'>%</th></tr>";
for($i=7; $i<count($persResultSplit)-1; $i++){
$TMP = "";
$TMP = explode(";", $persResultSplit[$i]);
if(stristr($TMP[2],"REGA "))
$tblPersResult .= "<tr class='TVO'>";
else
$tblPersResult .= "<tr>";
for($x=0; $x<3; $x++){
$tblPersResult .= "<td>" . $TMP[$x] . "</td>";
if($x<3)
$tblPersResult .= "<td></td>"; #spacer
}
for($x=3; $x<6; $x++)
$tblPersResult .= "<td class='alR2'>" . " " . $TMP[$x] . "</td>";
$tblPersResult .= "</tr>";
}
$tblPersResult .= "</table>";
#legenda
$tblPersResult .= "<br><table id='persResultLegenda' cellspacing='0'>" .
"<tr><th>G</th><th> = </th><th>gespeeld</th></tr>" .
"<tr><th>W</th><th> = </th><th>winst</th></tr>" .
"<tr><th>%</th><th> = </th><th>percentage</th></tr>" .
"</table>";
}
#### VERWERKING PDF file ####
#### Made by MvE - designed for TVO ####
#### www.tafeltennisverenigingoosterhout.nl ####
#### (c) 2011 - versie 1.4 ####
##PDF TO TEXT CONVERSION
$host = "www.mysite.com";
$file = "formprocess.php";
$hdrs = array( 'http' => array(
'method' => "POST",
'header'=> "accept-language: en\r\n" .
"Host: nttb-midden.nl\r\n" .
"Referer: http://www.nttb-midden.nl\r\n" . // Setting the http-referer
"Content-Type: application/x-www-form-urlencoded\r\n" .
"Content-Length: 33\r\n\r\n" .
"username=mustap&comment=NOCOMMENT\r\n"
)
);
$context = stream_context_create($hdrs);
$fp = fopen("http://" . $urlTeam, 'r', false, $context);
$data = fpassthru($fp);
fclose($fp);
$pdfText = pdf2text(curl_get_contents($data));
$pdfText = preg_replace('/[\r\n]/',';', $pdfText);
$pdfText = explode(";", $pdfText);
##STANDEN + VERENIGINGSGEGEVENS
#zoek begin en einde verenigingsgegeven + standen
$FailTxt_Stand = true;
for($begin=0; $begin<count($pdfText)-1; $begin++){
if($pdfText[$begin]=='Stand'){
$FailTxt_Stand = false;
break;
}
}
if($FailTxt_Stand){
for($begin=0; $begin<count($pdfText)-1; $begin++){
if($pdfText[$begin]=='Tel. zaal')
break;
}
}
for($einde=0; $einde<count($pdfText)-1; $einde++){
if(preg_match('/pagina */', $pdfText[$einde]))
break;
}
$output = array_slice($pdfText, $begin+1, $einde-$begin-1);
#vertaal de output in een tweedimensionaal array
if ($FailTxt_Stand)
$z = 5;
else
$z = 6;
for($x=0; $x<count($output)/$z; $x++){
for($y=$x*$z; $y<($x+1)*$z; $y++){
#output standen en adressen: $arrAdrEnStand (tweedimensionaal array)
#preg_match voor controle onvolledige adresgegevens
$search = "/(0)(\d{2})-(\d{7})|(0)(6)-(\d{8})|(0)(\d{3})-(\d{6})/";
if (preg_match($search, $output[$y]) && $y != ($x+1)*4 && $y < 5)
array_splice($output, ($y-1), 0, "");
if (!$FailTxt_Stand && $y==(($x+1)*$z)-1 && strpos($output[$y], '-') === false)
array_splice($output, ($y), 0, "");
$arrAdrEnStand[$x][$y-($x*$z)]= $output[$y];
#FOUT FOUT
#[om vage reden wordt adres van TVO niet uit pdf gelezen]: bij zien van "TVO *" --> invoegen "De Honsvoet 2"
if(preg_match('/TVO */', $output[$y]) and !(preg_match('/De Honsvoet 2/', $output[$y+1])))
array_splice($output, $y+1, 0, "De Honsvoet 2");
#EINDE FOUT
}
}
#TBL - standen
$tblStanden .= "<table id='standen' cellspacing='0'>" .
"<tr class='tabelKop'><th class='positie'>Nr.</th><th>Vereniging </th><th class='spacer'></th><th>Punten </th></tr>";
for($x=0; $x<count($arrAdrEnStand); $x++){
if (empty($arrAdrEnStand[$x][5]))
$arrAdrEnStand[$x][5] = '0 - 0';
if(stristr($arrAdrEnStand[$x][0],"REGA "))
$tblStanden .= "<tr class='TVO'><td><strong>" . ($x+1) . ".</strong></td>";
else
$tblStanden .= "<tr><td><strong>" . ($x+1) . ".</strong></td>";
$tblStanden .= "<td>" . $arrAdrEnStand[$x][0] . "</td>" .
"<td></td>" .
"<td>" . $arrAdrEnStand[$x][5] . "</td></tr>";
}
$tblStanden .= "</table>";
#TBL - adressen
sort($arrAdrEnStand);
for($i=0; $i<count($arrAdrEnStand); $i++){
$tblAdressen .= "<table class='verenigingsInfo'>" .
"<tr><td class='naamVer'>" . $arrAdrEnStand[$i][0] . "</td></tr>" .
"<tr><td class='loc'>" . $arrAdrEnStand[$i][1] . "<br>". $arrAdrEnStand[$i][2] . " " . ucfirst(strtolower($arrAdrEnStand[$i][3])) ."</td></tr>";
if(stristr($arrAdrEnStand[$i][4],"06-"))
$tblAdressen .= "<tr><td class='mob'>" . $arrAdrEnStand[$i][4] ."</td></tr>";
elseif (empty($arrAdrEnStand[$i][4]))
$tblAdressen .= "<tr><td class='tel'>-</td></tr>";
else
$tblAdressen .= "<tr><td class='tel'>" . $arrAdrEnStand[$i][4] ."</td></tr>";
$tblAdressen .= "<tr><td> </td></tr></table>";
}
##WEDSTRIJDUITSLAGEN
#uitslagen zoeken en in array plaatsen
if($pdfText[0]){
$arrWedstrijd = array();
$y=0;
for($x=0; $y<30; $x++){
if(preg_match('/^\d{5}/', $pdfText[$x])){
$yy = 0;
$arrWedstrijd [$y][$yy] = $pdfText[$x];
$z= $x+1;
while(!(preg_match('/^\d{5}/', $pdfText[$z])) && ($pdfText[$z]<>'Team') ){
$yy++;
if(stristr($pdfText[$z],"(ovb)"))
$arrWedstrijd[$y][$yy] = "<strong> *</strong>";
else
$arrWedstrijd[$y][$yy] = $pdfText[$z];
$z++;
}
$y++;
}
}
#array verwerken [regelindeling aanpassen]
#opvullen wedstrijden die niet door gaan (poule met 5 teams)
for($x=0;$x<count($arrWedstrijd);$x++){
if(count($arrWedstrijd[$x]<8)){
while($arrWedstrijd[$x][5] != '-')
array_splice($arrWedstrijd[$x], 1, 0, "");
}
}
}
#TBL - wedstrijden
#class array tabel wedstrijden
$classWedstrijd = array("","","","","alR","alC","","alR","alC2","alR");
#title output
if ($persResultSplit[4] == "Er zijn geen persoonlijke resultaten gevonden binnen uw selectie!")
$tblWedstrijden = "<strong>" . $persResultSplit[0] . "</strong><br><br>";
else
$tblWedstrijden = "<strong>" . $persResultSplit[0] . " - " . $persResultSplit[4] . "</strong><br><br>";
#table output
$tblWedstrijden .= "<table id='wedstrijden' cellspacing='0'>" .
"<tr class='tabelKop'><th>Nr.</th><th class='spacer'></th><th>Datum</th><th class='spacer'></th><th colspan='3'>Wedstrijd</th><th class='spacer'></th><th colspan='3'>Uitslag</th><th></th></tr>";
for($x=0; $x<count($arrWedstrijd); $x++){
#lijn tussen de wedstrijden per week
if($x>0 && (date('W', strtotime(str_replace(array('jan','feb','mrt','apr', 'mei','jun','jul','aug','sep','okt','nov','dec'), array('jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'), $arrWedstrijd[$x-1][2]) . " " . date("Y"))) != date('W', strtotime(str_replace(array('jan','feb','mrt','apr', 'mei','jun','jul','aug','sep','okt','nov','dec'), array('jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'), $arrWedstrijd[$x][2]) . " " . date("Y"))))) #OUD: $x>0 && ($arrWedstrijd[$x-1][2] != $arrWedstrijd[$x][2])
$tblWedstrijden .= "<tr class='rowSpacer'><td colspan='12'></td></tr>";
#bepaling TVO en/of vervalt of niets
if(($arrWedstrijd[$x][4] == '' || $arrWedstrijd[$x][6] == '') && (stristr($arrWedstrijd[$x][4],"REGA ") || stristr($arrWedstrijd[$x][6],"REGA ")))
$tblWedstrijden .= "<tr class='TVO vervalt'><td>" . $arrWedstrijd[$x][0] . "</td>";
else if($arrWedstrijd[$x][4] == '' || $arrWedstrijd[$x][6] == '')
$tblWedstrijden .= "<tr class='vervalt'><td>" . $arrWedstrijd[$x][0] . "</td>";
else if(stristr($arrWedstrijd[$x][4],"REGA ") || stristr($arrWedstrijd[$x][6],"REGA "))
$tblWedstrijden .= "<tr class='TVO'><td>" . $arrWedstrijd[$x][0] . "</td>";
else
$tblWedstrijden .= "<tr><td>" . $arrWedstrijd[$x][0] . "</td>";
$tblWedstrijden .= "<td></td>"; #spacer
#indien wedstrijd aanpassing notatie datum
if($arrWedstrijd[$x][1] != "")
$tblWedstrijden .= "<td>" . $arrWedstrijd[$x][1] . " " . $arrWedstrijd[$x][2] . " - " . $arrWedstrijd[$x][3] . "</td>";
else
$tblWedstrijden .= "<td></td>";
$tblWedstrijden .= "<td></td>"; #spacer
#invullen overige gegevens
for($y=4;$y<=10;$y++){
$tblWedstrijden .= "<td class='" . $classWedstrijd[$y] . "'>" . $arrWedstrijd[$x][$y] . "</td>";
if($y==6)
$tblWedstrijden .= "<td></td>"; #spacer
}
$tblWedstrijden .= "</tr>";
}
$tblWedstrijden .= "</table>";
$tblWedstrijden .= "<br><strong>* = uitslag onder voorbehoud</strong><br>";
?>
Toon Meer
Kunnen jullie misschien de fout achterhalen?
Alvast bedankt.
Mark