In my web application I have an images and each and every image has button for like as well as name of the user who uploaded it.User name is a link. But in my code both link and button not work.Both are not clickable. Here is my code
<?php
// Connects to your Database
mysql_connect("localhost", "root", "") or die(mysql_error()) ;
mysql_select_db("test") or die(mysql_error()) ;
//Retrieves data from MySQL
$data1 = mysql_query("SELECT * FROM image_upload INNER JOIN user_table
ON image_upload.user_id=user_table.user_id WHERE flag=1 ORDER BY timestamp DESC; ") or die(mysql_error());
//Puts it into an array
while($info = mysql_fetch_array($data1)){
//Outputs the image and other data
?>
<div class="test" id="<?php $info['ID']?>">
<div class="username"><a href="profile.php" class="but" title=""><?php echo $info['user_name']?></a></div>
<div class="imagedisplay"><img src="<?php echo "uploads/".$info['image']?>"style="width:230px; height:auto; border:1px solid #000; border- radius:20px;"></div>
<div class="desc"><?php echo $info['description']?></div>
<button type="button" id="<?php echo $info['ID']?>">Like</button>
</div>
<?php
}
?>
Can any one help me please.