kayla2009 Posted July 19, 2013 Share Posted July 19, 2013 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 includefor testing i just wrote : <?phpecho 'test'; ?>into the site.php that should be called. please help !!!! } Link to comment https://forums.phpfreaks.com/topic/280327-integrate-an-include-into-html-that-is-already-generated-by-php/ Share on other sites More sharing options...
AbraCadaver Posted July 19, 2013 Share Posted July 19, 2013 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. Link to comment https://forums.phpfreaks.com/topic/280327-integrate-an-include-into-html-that-is-already-generated-by-php/#findComment-1441431 Share on other sites More sharing options...
kayla2009 Posted July 20, 2013 Author Share Posted July 20, 2013 thanks so much ... i got it !!! kayla Link to comment https://forums.phpfreaks.com/topic/280327-integrate-an-include-into-html-that-is-already-generated-by-php/#findComment-1441531 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.