Jump to content

Recommended Posts

Am Beginner .. and i tried the whole day to find the mistake on this:

while($h_rec = mysqli_fetch_assoc($abfrage)){
                             echo '<tr class="zeile">';
                                echo '<td class="zelle01"><a href="'
                                      .$h_rec['h_url'].
                                      '">'
                                      .$h_rec['h_name']
                                      .'<div id="sites_frame">'
                                          .'<?php include "sites.php"; ?>'                      
                                     
                                      .'</div>'
                                      .'</a></td>';
                                echo '<td class="zelle02">'.$h_rec['h_lang'].'</td>';
                                echo '<td class="zelle03">'.$h_rec['h_filesize'].'</td>';
                                echo '<td class="zelle04">'.$h_rec['h_expire'].'</td>';
                                echo '<td class="zelle05">'.$h_rec['h_freespeed'].'</td>';
                                echo '<td class="zelle06">'.$h_rec['h_year'].'</td>';
                                echo '<td class="zelle07">'.$h_rec['h_vote'].'</td>';    
                                echo '<td class="zelle08">Add shit</td>';                
                            echo '</tr>';
                            
  the "include "sites.php" simply doesnt work ...  i can see the pop up, that is a by the ID "sites_frame" hidden block .. but he wouldnt show me whatever i have hidden in the include
for testing i just wrote : 

<?php
echo 'test';
 ?>

into the site.php that should be called.

 

please help !!!!                         
                    
                    }

You are echoing the include, don't.  Try this:

                                echo '<tr class="zeile">';
                                      .'<td class="zelle01"><a href="'
                                      .$h_rec['h_url'].
                                      '">'
                                      .$h_rec['h_name']
                                      .'<div id="sites_frame">';
                                       include "sites.php";
                                       echo '</div>'
                                      .'</a></td>';

Also, thats a mess.  You could include all that repeatable code in the include.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.