Jump to content

[SOLVED] Quick PHP IF "AND" statement!


Gayner

Recommended Posts

Here is my code:

if ($ibforums->member['skinstyle'] == "")
$lolnoskin = "0";

 

Now i want to put AND if ($ibforums->member['monkskin'] == "") in the same IF function so it would be like this:

 

if ($ibforums->member['skinstyle'] == "") AND if ($ibforums->member['monkskin'] == "") ?

 

I want to beable to use AND Statement in my IF Function, help, thx

Link to comment
Share on other sites

if (($ibforums->member['skinstyle'] == "") && $ibforums->member['monksink'] =="") {
}

 

I thought u would use "AND"

 

OMG that is epic, thanks alot for your help, man im learning php so simplier cause of phpfreaks i love it, thanks guys!

 

Topic Solved!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.