Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/30/2022 in all areas

  1. My code is using the heredocs operator to avoid all the echos. If you look it up in the manual you can see how it works. My code should work just fine except if a I have any typos of my own. You have to be php mode for ALL of it. If it doesn't work, post it again as is and let's see it. And be sure that the heredocs; line is in column 1 !!! I do see where the image tags are showing but since you didn't provide any size values it may not be showing. Do an echo of your img tag src value so you can see what the actual image file name looks like.
    1 point
  2. Did all that copying and never noticed that he was using id values. Whatever for I wonder? Try adding an alt attribute to the img tag. <td><img src="{$bild[$a]}" alt="img {$bild[$a]} not shown"></td> Let's see if there is a reason behind it not showing or simply an error in your reference.
    1 point
  3. Here is your code, a little cleaned up and more readable. $a = '1'; $b = '2'; $code=<<<heredocs <table border=1> <tr> <td id="2">&nbsp;{$vorname[$a]}<br>{$name[$a]}</td> <td><img src="{$bild[$a]}"></td> <td id="2">{$vorname[$b]}<br>{$name[$b]}</td> <td><img src="{$bild[$b]}"></td> <tr> <td id="2">Nick:</td> <td id="4">{$nick[$a]}</td> <td id="2">Nick:</td> <td id="4">{$nick[$b]}</td> <tr> <td id="2">Geburtstag:</td> <td id="4">{$geb[$a]}</td> <td id="2">Geburtstag:</td> <td id="4">{$geb[$b]}</td> <tr> <td id="2">Wohnort:</td> <td id="4">{$ort[$a]}</td> <td id="2">Wohnort:</td> <td id="4">{$ort[$b]}</td> <tr> <td id="2">Hobby:</td> <td id="4">{$hobby[$a]}</td></td> <td id="2">Hobby:</td> <td id="4">{$hobby[$b]}</td> <tr> <td id="2">Torrausch-Verein:</td> <td id="4">{$club[$a]}</td> <td id="2">Torrausch-Verein:</td> <td id="4">{$club[$b]}</td> <tr> <td id="2">Liga:</td> <td id="4">{$liga[$a]}</td> <td id="2">Liga:</td> <td id="4">{$liga[$b]}</td> <tr> <td id="2">Seit wann<br>bei Torrausch:</td> <td id="4">{$date[$a]}</td> <td id="2">Seit wann<br>bei Torrausch:</td> <td id="4">{$date[$b]}</td> <tr> <td id="2">Wie zu Torrausch<br>gekommen:</td> <td id="4">{$wie[$a]}</td> <td id="2">Wie zu Torrausch<br>gekommen:</td> <td id="4">{$wie[$b]}</td> <tr> <td id="2">Beruf:</td> <td id="4">{$beruf[$a]}</td> <td id="2">Beruf:</td> <td id="4">{$beruf[$b]}</td> <tr> <td id="2">Sonstiges:</td> <td id="4">{$sonstiges[$a]}</td> <td id="2">Sonstiges:</td> <td id="4">{$sonstiges[$b]}</td> <tr> <td id="2">Mailadresse:</td> <td id="4">{$mail[$a]}</td> <td id="2">Mailadresse:</td> <td id="4">{$mail[$b]}</td> </table> <p><p> heredocs; echo $code; You have a few html errors in your table. Also a bad TD tag in one place as well as a bunch of missing tags. As for your missing img - does the rest of the table show up at all?
    1 point
  4. Not to mention a complete disregard for the fact that id values should be unique.
    0 points
This leaderboard is set to New York/GMT-04:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.