Voor een scriptje voor m.b.v. PHP, MySQL e.d. heb ik het volgende om nieuwsberichten weer te geven, de titels worden wel weergegeven en de URL ook, maar de php?id= blijft leeg hoewel het wel in de source staat, ik begrijp het niet! Waar zit de fout 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| <? <?PHP include("../../php/commonIncludes/mysql.php"); //Include Mysql account info en functie $link = connectDB(); $result=mysql_query("select * from nieuws"); $aantalGasten=mysql_numrows($result); if ($aantalGasten>0) { if (!IsSet($start)) { $start = 0; } $limiet=6; $end=$start+$limiet; $teller = 0; $result = mysql_query("select titel from nieuws order by id DESC LIMIT $start, $limiet"); while($record=mysql_fetch_array($result)) //zolang dit true is, zijn er nog berichten { $id=$record["id"]; $titel=$record["titel"]; if (strlen($titel) > 20) { $titel=substr($titel, 0, 24); $titel=$titel."..."; } print "<tr>"; print "<td class=\"tekst\"><a href=\"../../admin/nieuws/viewNieuws.php?id=$id\">$titel</a></td>"; print "</tr>"; $teller++; } } else { print "<tr>"; print "<td class=\"tekst\">Er is geen nieuws!</td>"; print "</tr>"; } mysql_close(); ?> |