0
<?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!!!!!!!!!!!!!

Edited by Ezzaral: Added code tags. Please use them to format any code that you post. Also, do not create useless polls for questions.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by pritaeas
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.