PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$siteid = $_GET["siteid"];
if ($siteid = "7")
include("adminmain.php");
?>
That was my code, but when I run the file as "index.php?siteid=4", it will include the adminmain.php file!? Can you notice any bug in my script or custom?
Oh damn! That was very fast reply thanks! I have not been using PHP for long time so I don't even remember the basics :S I have been using programming language that doesn't need the double =. Thank you for fast reply!