Dit zijn mijn codes maar ik heb werkelijk geen idee waar al die { en } moeten komen...
Plz hlp me....ik kon niet zoeken naar {tjes
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| <? $filename = "news.txt"; if ($link == "http://") $data = ("<center><table width='485'><tr><td bgcolor='#FDDD00' width='400'><b>&nbsp; $titel</b></td><td bgcolor='#FDDD00' width='90'><center>$datum</center></td></tr><tr><td colspan='2' bgcolor='#FFFFFF'>$news<br><br></td></tr></table></center>"); $fd = fopen($filename, "r"); while (!feof ($fd)) { $buffer = fgets($fd, 4096); print("<a href=news.php></a>"); } fclose($fd); $file = fopen($filename, "w+"); fwrite($file, $data); fclose($file); $olddata = fopen($filename, "a+"); fwrite($olddata, $buffer); fclose($olddata); else $data = ("<center><table width='485'><tr><td bgcolor='#FDDD00' width='400'><b>&nbsp; $titel</b></td><td bgcolor='#FDDD00' width='90'><center>$datum</center></td></tr><tr><td colspan='2' bgcolor='#FFFFFF'>$news<br><br><div align='right'><font size='2'><a href='$link' target='main'>lees verder...</a> &nbsp;</font></div></td></tr></table></center>"); $fd = fopen($filename, "r"); while (!feof ($fd)) { $buffer = fgets($fd, 4096); print("<a href=news.php></a>"); } fclose($fd); $file = fopen($filename, "w+"); fwrite($file, $data); fclose($file); $olddata = fopen($filename, "a+"); fwrite($olddata, $buffer); fclose($olddata); ?> |
Plz hlp me....ik kon niet zoeken naar {tjes
Some things can not happen until they happen...