I have this little piece of code that says that if [tt]$KONVERTERNAVN[/tt] = the string which contains : KFUM-Spejderne i Danmark
But even if the [tt]$KONVERTERNAVN[/tt] is something else than KFUM-Spejderne i Danmark it still runs through this code.
The [tt]$KONVERTERNAVN[/tt] is brought by an SQL query and if i just echo the [tt]$KONVERTERNAVN[/tt] then it print's out KFUM-Spejderne i Danmark
So how can it be that even if the [tt]$KONVERTERNAVN[/tt] is something else it does it anyway ?? Any good answers?
My code :
[tt]
[/tt]
thnx Machine code Rocks
But even if the [tt]$KONVERTERNAVN[/tt] is something else than KFUM-Spejderne i Danmark it still runs through this code.
The [tt]$KONVERTERNAVN[/tt] is brought by an SQL query and if i just echo the [tt]$KONVERTERNAVN[/tt] then it print's out KFUM-Spejderne i Danmark
So how can it be that even if the [tt]$KONVERTERNAVN[/tt] is something else it does it anyway ?? Any good answers?
My code :
[tt]
Code:
/* some SQL code before this. */
if($KONVERTERNAVN = "KFUM-Spejderne i Danmark")
{
$mail = "korpskontor@kfumscout.dk";
echo '<script language="javascript">winopen(\'mailform.php?modtmail='.$mail.'\')</script>';
}
thnx Machine code Rocks