This is driving me NUTS!!!!
i need this line to be NOT EQUALS
if ($Username == $userid) { ?>
BUT ive tried everything!!
if ($Username != $userid) { ?>
if ($Username <> $userid) { ?>
if ($Username !== $userid) { ?>
AND I KNOW it works cause i have THIS on another not so distant page working
if ($Password <> $Password2)
HERE is my code and If you can figure this out i will be extremely greatful.
<?
include("config.php");
$Link = mysql_connect ($Host, $DBUser, $DBPass);
$Query = "SELECT * from my_table";
$Result = mysql_db_query ($DBName, $Query, $Link);
while ($UserInfo = mysql_fetch_array($Result)) {
$userid=$UserInfo[USERID];
if ($Username != $userid) { ?>
<!-- begin Username Taken Code -->
<form method="POST" name="signup" action="resetpw2.php">
<font face="Arial" size="2" color="#FF0000">THIS WHERE YOU GO IF YOU PUT IN A BAD USERNAME</font><br>
<input type="text" name="Username" value="" style="background:#D7D7D7" size="9" maxlength="64"><font face="Arial" size="2"> @domain.com</font> </td>
<input type="submit" name="signup" value="Submit"><? ;exit ?>
<?
} else {
}
}
?>
<form method="POST" name="signup" action="resetpw2.php">
<font face="Arial" size="2" color="#FF0000">THIS WHERE YOU GO IF YOU PUT IN A GOOD USERNAME</font><br>
<input type="text" name="Username" value="" style="background:#D7D7D7" size="9" maxlength="64"><font face="Arial" size="2"> @domain.com</font> </td>
<input type="submit" name="signup" value="Submit"><? ;exit ?>