Jump to content

if else statement - <---help lol


jjmusicpro

Recommended Posts

i am passing a varaiable in the url groupid=

 

i only wanted to display a picture when a certain groupid was passed, and not display when a different id

for some reason it always shows...

 

<?php
$groupid_sent = $_GET['groupid'];
if($groupid_sent = '10')
{
	echo '<img src="bestOfSeattle2007.jpg">';
}
else
{
	// echo nothing Nothing
}
?>

Link to comment
https://forums.phpfreaks.com/topic/87424-if-else-statement/
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.