Momenteel ben ik bezig met iets vrij simpels, maar toch kom ik er ff neit meer uit! 
Doel: Verscheidene URLs onder catagorieën ordenen uit database
momenteel heb ik dit:
probleem alleen nu is, dat ie ook ALLE links 4x weergeeft onder een catagorie...maar ik komer niet uit hoe ik dit nu oplos, iemand id?
/edit/ na repley
probleem nog steeds
Doel: Verscheidene URLs onder catagorieën ordenen uit database
momenteel heb ik dit:
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
| <?php $sql_cat = "SELECT * FROM Links_Cat ORDER BY Cat_Naam DESC"; $result_cat = mysql_query($sql_cat) or die(mysql_error()); while ($cat_sql = mysql_fetch_array($result_cat)) { ?> <table border='0' align='center' cellpadding='0' cellspacing='0' class='Midden'> <tr> <td colspan="2" align='right' class='MiddenTop'><p><?php echo $cat_sql[Cat_Naam];?></p></td> </tr> <?php $catid = $cat_sql[Cat_ID]; for ($i = 0; $i < mysql_num_rows($result_cat); $i++) { $sql = "SELECT DISTINCT Adres, Beschrijving, Titel, L_Cat_ID FROM Links WHERE Controle = '1' AND L_Cat_ID = '$catid' ORDER BY Titel DESC"; $result = mysql_query($sql) or die(mysql_error()); while ($link_sql = mysql_fetch_array($result)) { ?> <tr> <td width="175" class='Link'><a class='Midden' href='<?php echo $link_sql['Adres']; ?>' target='_blank'><?php echo stripslashes($link_sql['Titel']); ?></a></td> <td width="198" class='Link'><?php echo stripslashes($link_sql['Beschrijving']); ?></td> </tr> </table> <br> <?php } } } ?> |
probleem alleen nu is, dat ie ook ALLE links 4x weergeeft onder een catagorie...maar ik komer niet uit hoe ik dit nu oplos, iemand id?
/edit/ na repley
probleem nog steeds
12,85kWp - ZB 7,5m2/400l - 5kW Pana H WP (CV&SWW) - 13,8kWh accu