Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 13:04

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

Advertisement



Php if else problem

Discussion on Php if else problem within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
kaderebak's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 210
Received Thanks: 117
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 09/07/2012, 23:52   #2
 
ci4lblFmPW's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 38
Received Thanks: 28
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 09/08/2012, 05:23   #3
 
kaderebak's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 210
Received Thanks: 117
Thanks so mach
kaderebak is offline  
Old 09/10/2012, 06:52   #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 09/10/2012, 14:54   #5
 
Tofrum's Avatar
 
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 09/10/2012, 22:01   #6
 
ci4lblFmPW's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 38
Received Thanks: 28
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


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
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 könnt :) wäre echt sehr nice :)



All times are GMT +1. The time now is 13:06.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.