Fout in code
Ik heb deze code:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
echo $row['straatNaam'] . "<br />";
echo $row['huisnummer'] . "<br />";
echo $row['postcode'] . "<br />";
echo $row['plaatsNaam'] . "<br />";
echo $row['vraagprijs'] ; echo $row['vraagprijsType'] . "<br />";
echo $row['woonOpp'] . "<br />";
echo $row['perceelOpp'] . "<br />";
echo $row['huurOfKoop'] . "<br />";
echo "<img src='images/aanbod/" . $row['thumb01'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb02'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb03'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb04'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb05'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb06'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb07'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb08'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb09'] . "'><br />";
echo "<a href='images/aanbod/" . $row['thumb10'] . "'>" . "<img src="images/icons/social/facebook.png"/>" . "</a>""<br />";
?>
echo $row['straatNaam'] . "<br />";
echo $row['huisnummer'] . "<br />";
echo $row['postcode'] . "<br />";
echo $row['plaatsNaam'] . "<br />";
echo $row['vraagprijs'] ; echo $row['vraagprijsType'] . "<br />";
echo $row['woonOpp'] . "<br />";
echo $row['perceelOpp'] . "<br />";
echo $row['huurOfKoop'] . "<br />";
echo "<img src='images/aanbod/" . $row['thumb01'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb02'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb03'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb04'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb05'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb06'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb07'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb08'] . "'><br />";
echo "<img src='images/aanbod/" . $row['thumb09'] . "'><br />";
echo "<a href='images/aanbod/" . $row['thumb10'] . "'>" . "<img src="images/icons/social/facebook.png"/>" . "</a>""<br />";
?>
alles werkt, behalve de laatste regel. Daar wil ik dus een link naar file images/aanbod/ (en dan de waarde van row10) en het image dat gezien moet worden (als je daar op klikt ga je dus naar dat file) images/icons/social/facebook.png
Maar die regel werkt niet. Ik ben niet erg kundig met php en sql etc, en kan dus niet zien waar de fout zit (wellicht een . of " oid).
alvast enorm bedankt.
- Aar -:
Gelieve in het vervolg bij code de [code][/code]-tags gebruiken.
Alvast bedankt!
Alvast bedankt!
Gewijzigd op 14/04/2014 10:14:58 door - Ariën -
Code (php)
1
2
3
2
3
<?php
echo "<a href='images/aanbod/" . $row['thumb10'] . "'><img src=\"images/icons/social/facebook.png\"/></a><br />";
?>
echo "<a href='images/aanbod/" . $row['thumb10'] . "'><img src=\"images/icons/social/facebook.png\"/></a><br />";
?>
Code (php)
1
2
2
<?php
echo '<a href="images/aanbod/' . $row['thumb10'] . '"><img src="images/icons/social/facebook.png"/></a><br />';
echo '<a href="images/aanbod/' . $row['thumb10'] . '"><img src="images/icons/social/facebook.png"/></a><br />';
Gewijzigd op 14/04/2014 10:13:32 door Michael -
Werkt perfect!!!
Super bedankt!!