Jump to content

Wasserlasser

New Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Wasserlasser's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. And I just learned something, thank you. It is in fact now displaying data, but not all pictures. I get the data from another file in the same directory <? require ("ll_daten.php"); ?> And for 1 and 2 it is this code // Topse $vorname[1] = "Tobias"; $name[1] = "Hannibal"; $nick[1] = "Topse"; $bild[1] = "http://torrausch.net/portal/bilder_LL/topse2.jpg"; $geb[1] = "21.11.1970"; $ort[1] = "Velbert"; $hobby[1] = "meine 5 Kinder<br>Fussball<br>Computer<br>Badminton"; $club[1] = "Derby County FC"; $liga[1] = "<a href='http://europapkal.torrausch.net'>Europapokal</a>"; $date[1] = "September 2002<br>seit November 2003 LL"; $wie[1] = "über einen Freund"; $beruf[1] = "BIM Manager"; $sonstiges[1] = "Zebra Fan"; $mail[1] = "<a href='mailto:topse@torrausch.net'>Topse</a>"; // Thies $vorname[2] = "Thies"; $name[2] = "Petersen"; $nick[2] = "Thies"; $bild[2] = "http://torrausch.net/portal/bilder_LL/thies4.jpg"; $geb[2] = "19.09.1980"; $ort[2] = "Kiel/Rendsburg"; $hobby[2] = "Tischtennis<br>Internet<br>HSV"; $club[2] = "Leicester City FC"; $liga[2] = "<a href='http://tuerkei.torrausch.net'>Türkei</a><br><a href='http://portugal.torrausch.net'>Portugal</a>"; $date[2] = "27.10.2002<br>seit 10.03.2003 LL"; $wie[2] = "über einen PbeM<br>verrückten Typ"; $beruf[2] = "Student"; $sonstiges[2] = "HSV-Mitglied<br>Der Unabsteigbare"; $mail[2] = "<a href='mailto:thies@torausch.net'>Thies</a>"; Why this does not work for the second one is beyond me. UPDATE After clearing the CACHE, I get this
  2. @ginerjm Thanks for the code, but there are no echos in your code, so of course nothing is displaying
  3. Thanks so much for all your answers. I have taken this over from someone and I am trying to clean this up. With that being said, I am not a programmer (surprise), so I am learning as I go. I will check your code and get back to you asap. Wasserlasser
  4. Hi, <table border=1> <? $a = '1'; $b = '2'; ?> <tr> <td id="2">&nbsp;<? echo $vorname[$a] ?>&nbsp;<br>&nbsp;<? echo $name[$a] ?>&nbsp;</td> <td><img src="<? echo $bild[$a]; ?>"></td> <td id="2">&nbsp;<? echo $vorname[$b] ?>&nbsp;<br>&nbsp;<? echo $name[$b] ?>&nbsp;</td> <td><img src="<? echo $bild[$b]; ?>"></td> <tr><td id="2">Nick:</td><td id="4"><? echo $nick[$a] ?></td> <td id="2">Nick:</td><td id="4"><? echo $nick[$b] ?></td> <tr><td id="2">Geburtstag:</td><td id="4"><? echo $geb[$a] ?></td> <td id="2">Geburtstag:</td><td id="4"><? echo $geb[$b] ?></td> <tr><td id="2">Wohnort:</td><td id="4"><? echo $ort[$a] ?></td> <td id="2">Wohnort:</td><td id="4"><? echo $ort[$b] ?></td> <tr><td id="2">Hobby:</td><td id="4"><? echo $hobby[$a] ?></td></td> <td id="2">Hobby:</td><td id="4"><? echo $hobby[$b] ?></td> <tr><td id="2">Torrausch-Verein:</td><td id="4"><? echo $club[$a] ?></td> <td id="2">Torrausch-Verein:</td><td id="4"><? echo $club[$b] ?></td> <tr><td id="2">Liga:</td><td id="4"><? echo $liga[$a] ?></td> <td id="2">Liga:</td><td id="4"><? echo $liga[$b] ?></td> <tr><td id="2">Seit wann<br>bei Torrausch:</td><td id="4"><? echo $date[$a] ?></td> <td id="2">Seit wann<br>bei Torrausch:</td><td id="4"><? echo $date[$b] ?></td> <tr><td id="2">Wie zu Torrausch<br>gekommen:</td><td id="4"><? echo $wie[$a] ?></td> <td id="2">Wie zu Torrausch<br>gekommen:</td><td id="4"><? echo $wie[$b] ?></td> <tr><td id="2">Beruf:</td><td id="4"><? echo $beruf[$a] ?></td> <td id="2">Beruf:</td><td id="4"><? echo $beruf[$b] ?></td> <tr><td id="2">Sonstiges:</td><td id="4"><? echo $sonstiges[$a] ?></td> <td id="2">Sonstiges:</td><td id="4"><? echo $sonstiges[$b] ?></td> <tr><td id="2">Mailadresse:</td><td id="4"><? echo $mail[$a] ?></td> <td id="2">Mailadresse:</td><td id="4"><? echo $mail[$b] ?></td> </table><p><p> This code does not display the picture, even though the picture address is correct when I click on the missing picture icon and copy the image location. Any ideas why? Thanks
  5. Thanks, I added it to the body. Interestingly enough, it worked on the index.php before as well. I added this now in the body, same result. It will not work unless I put the code there directly to include the bootstrap files. <!doctype html> <html> <head> <meta charset="utf-8"> <!--Own CSS file to overwrite Bootstrap if needed--> <link rel="stylesheet" type="text/css" href="rules.css"> </head> <body> <?php require('include.php');?>
  6. Hello everyone, in my index.php I require the include file like this <?php require('include.php');?> The file looks like this <!doctype html> <html> <head> <meta charset="utf-8"> <!--Include Bootstrap files locally--> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> </head> <body> </body> </html> Then I have another file where I include the same php file as I want to run some tests. <!doctype html> <html> <head> <meta charset="utf-8"> <?php require('include.php');?> </head> <body> Then there is the rest of the code for the accordion <!-- Accordion --> <div class="container-fluid bg-gray" id="accordion-style-1"> <div class="container"> <section> <div class="row"> <div class="col-12"> <h1 class="text-green mb-4 text-center">Frequently Asked Questions</h1> </div> <div class="col-10 mx-auto"> <div class="accordion" id="accordionExample"> <div class="card"> <div class="card-header" id="headingOne"> <h5 class="mb-0"> <button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> <i class="fa fa-amazon main"></i><i class="fa fa-angle-double-right mr-3"></i>How to pay amazon. </button> </h5> </div> <div id="collapseOne" class="collapse show fade" aria-labelledby="headingOne" data-parent="#accordionExample"> <div class="card-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.<a href="https://www.fiverr.com/share/qb8D02" class="ml-3" target="_blank"><strong>View More designs <i class="fa fa-angle-double-right"></i></strong></a> </div> </div> </div> <div class="card"> <div class="card-header" id="headingTwo"> <h5 class="mb-0"> <button class="btn btn-link collapsed btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> <i class="fa fa-plus main"></i><i class="fa fa-angle-double-right mr-3"></i>There are many more. </button> </h5> </div> <div id="collapseTwo" class="collapse fade" aria-labelledby="headingTwo" data-parent="#accordionExample"> <div class="card-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.<a href="https://www.fiverr.com/share/qb8D02" class="ml-3" target="_blank"><strong>View More designs <i class="fa fa-angle-double-right"></i></strong></a> </div> </div> </div> <div class="card"> <div class="card-header" id="headingThree"> <h5 class="mb-0"> <button class="btn btn-link collapsed btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree"> <i class="fa fa-expeditedssl main"></i><i class="fa fa-angle-double-right mr-3"></i>How to enable two factor authentication. </button> </h5> </div> <div id="collapseThree" class="collapse fade" aria-labelledby="headingThree" data-parent="#accordionExample"> <div class="card-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.<a href="https://www.fiverr.com/share/qb8D02" class="ml-3" target="_blank"><strong>View More designs <i class="fa fa-angle-double-right"></i></strong></a> </div> </div> </div> <div class="card"> <div class="card-header" id="headingFour"> <h5 class="mb-0"> <button class="btn btn-link collapsed btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour"> <i class="fa fa-envelope main"></i><i class="fa fa-angle-double-right mr-3"></i>How to contact us. </button> </h5> </div> <div id="collapseFour" class="collapse fade" aria-labelledby="headingFour" data-parent="#accordionExample"> <div class="card-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.<a href="https://www.fiverr.com/share/qb8D02" class="ml-3" target="_blank"><strong>View More designs <i class="fa fa-angle-double-right"></i></strong></a> </div> </div> </div> </div> </div> </div> </section> </div> </div> <!-- .// Accordion --> But the Accordion does not work, unless I add the code for the Bootstrap files back in the <head> section of my second file <!doctype html> <html> <head> <meta charset="utf-8"> <?php require('include.php');?> <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> </head> <body> Any idea why that is? Can I not include the php file the way I did? Thanks for your help Wasserlasser
×
×
  • 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.