My problem
Query
PHP Code:
$login = mssql_query("SELECT login= case when login_time >= logout_time then 1 when login_time < logout_time then 0 end
from [Telecaster].dbo.[Character] with (nolock)where name = '$post1'");
$login1 = mssql_fetch_assoc($login);
$sonuc = $Login1['login'];
PHP Code:
if ($sonuc = 1) {
echo '<font color="red">You can not add the item as the avatar is online!</font>';
exit();
} else {
whatever the outcome , error Message You can not add the item as the avatar is online!

$lpost1 = Chracter name
Thanks






