Okay, I'm a hack at this-- please tell me whats wrong in this bit:
I've got lvl.txt with a single character in it. If the character = 1, I want the graphic to show up; if not, I want a blank space. Currently, the character = 5, but my graphic is still showing up...
<?php
$getcurlvl = fopen("lvl.txt", "r");
$curlvl = fgets($getcurlvl, 1);
fclose($getcurlvl);
?>
<?php
if ($curlvl, "1") {
?>
<IMG ALT="^" SRC="images/arrow.gif">
<? } else { echo ' ';} ?>
I've got lvl.txt with a single character in it. If the character = 1, I want the graphic to show up; if not, I want a blank space. Currently, the character = 5, but my graphic is still showing up...
<?php
$getcurlvl = fopen("lvl.txt", "r");
$curlvl = fgets($getcurlvl, 1);
fclose($getcurlvl);
?>
<?php
if ($curlvl, "1") {
?>
<IMG ALT="^" SRC="images/arrow.gif">
<? } else { echo ' ';} ?>