Jump to content

Nothing displaying on page


lukep11a

Recommended Posts

I've got this code that worked on a blank php page but then I copied it to my page and when I preview it nothing is displayed on the page! Can anyone help... Thanks in advance.

 

<div id="main_content_one">
<?php
include 'config.php';
include 'opendb.php';

$var = 'Text';
$query = "SELECT * FROM table WHERE row LIKE \"%$var%\"";
$result = mysql_query($query);

while($row = mysql_fetch_assoc($result))
{
    echo "{$row['name']} <br>";
    
?>
    <a href="javascript:;" onclick="document.getElementById('<?php echo $row['id']; ?>').style.display='block'; window.open('http://<?php echo $row['link']; ?>');"><img src="../../graphics/Click here.png" border="0" /></a><br \>
    <div id="<?php echo $row['id']; ?>" style="display:none;">
    <?php echo $row['surname']; ?>
    </div>
    <?php
echo "{$row['date']} <br>";
}
include 'closedb.php';
    ?>   
    </div>

Link to comment
https://forums.phpfreaks.com/topic/225114-nothing-displaying-on-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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