The actual code looks like this:
if (file_exists($filename)) {echo $player;
} else {
echo 'something';
but it displays the player even if the id is not called from the url
i need something like this:
check if $filename exists and $…
I have a foreach loop and an if statement. If a match is found i need to ultimately break out of the foreach.
foreach ($equipxml as $equip) {
$current_device = $equip->xpath("name");
if ($current_device[0] == $device) {
// Found a match …
I have a little problem with my if(isset($_POST['submit'])) code. What I want is some echos and a table to not appear when the script is open but I do want it to show when the submit button …