<?php
if(isset($_COOKIE['LoginIdCookie']))
{
require_once('database.php');
$result=mysqli_query($dbc,"select *from events") or die('Not Connected');
echo "<html>
		<body>";
  echo "<form method='post' action='Participationhappen.php'>"; 
  echo "<table cellspacing='0' cellpadding='15'>
  		<th><b>Event Title:</b></th>
  		<th ><b>Event City:</b></th>
		<th><b>Content:</b></th>
		<th><b>Images:</b></th>
		<th><b>Event Date:</b></th>";
while($row=mysqli_fetch_array($result)){
$Title=$row['Title'];
$City=$row['City'];
$Content=$row['Content'];
//$Photo=$row['Photo'];
$Date=$row['Date'];
$EventId=$row['EventId'];
[B]$Photo=$row['Photo'];
echo $Photo;[/B]
echo "<tr><td>$Title</td><td>$City</td><td>$Content</td><td>[B]<img src='<?php echo $Photo; ?>'/>[/B]</td><td>$Date</td>
	  <td><input type='checkbox' name='event[]' value=$EventId /></td></tr></tr>"; 
}
echo "<tr><td><input type='submit' name='submit' value='Participate'</td>";
echo "<td><a href='log_out.php'>Log out</a></td></tr>";
echo "</table></form></body></html>";
}
else
{
echo "Sorry, You must to logged in for participating in event.";
}
?>

In this code $Photo contain the URL of Image and it display it well correctly but it not displaying images contain this URL.
Can Anyone Knows where I m wrong?
Help me PLz!!!!!!!!!!!!!

Is the path to the image correct ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.