Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 14:59

  • Please register to post and access all features, it's quick, easy and FREE!

 

Php if else problem

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 203
Received Thanks: 112
Php if else problem

Hi all

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']; 
İf and else

PHP Code:
if ($sonuc 1) {
           echo 
'<font color="red">You can not add the item as the avatar is online!</font>';
           exit();            
        } else { 
My problem

whatever the outcome , error Message You can not add the item as the avatar is online!




$lpost1 = Chracter name

Thanks



kaderebak is offline  
Old   #2
 
elite*gold: 0
Join Date: Oct 2011
Posts: 38
Received Thanks: 27
PHP differentiates upper case letters and lower case letters in variable names, you'll have to change the upper case 'L' of '$Login1' to a lower case 'L'.

Quote:
$sonuc = $Login1['login'];
->
Quote:
$sonuc = $login1['login'];
You will also have to use the correct comparison operator for variables, which is '==', not '='.

Quote:
if ($sonuc = 1)
->
Quote:
if ($sonuc == 1)
Greez,

Ciel


ci4lblFmPW is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 203
Received Thanks: 112
Thanks so mach
kaderebak is offline  
Old   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 44
Received Thanks: 5
its this php forums?

I am so sorry, I thought that this was rappelz private server


q8wars is offline  
Old   #5
 
elite*gold: 1
Join Date: Nov 2011
Posts: 651
Received Thanks: 104
Yes its rappelz private server
And guess what:
NO ONE GIVES A ****

There is no problem in helping others
Tofrum is offline  
Old   #6
 
elite*gold: 0
Join Date: Oct 2011
Posts: 38
Received Thanks: 27
Well, kadebarak's problem was concerning a php issue related to Rappelz, hence it is, at least partially, belonging into this section.

Greetz,

Ciel


ci4lblFmPW is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen...
10 Replies - Metin2 PServer - Discussions / Questions



All times are GMT +2. The time now is 14:59.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.