Jump to content

multiple if statement


herghost

Recommended Posts

Hi Guys I am having problems with the below, I am assuming I have formated the if statement incorrectly but I cant see my mistake as nothing shows?

 

 

<?php
$query = mysql_query("SELECT * FROM user_profile WHERE username = '$username'");
$results = mysql_fetch_array($query);

if($results['followers'] < 150 && $results['posts'] < 300 && $results['days'] > 0 && $results['status'] = 0)
{
            echo 'ok'
}

 

The database for the said user looks like:

 

followers

days

posts

status

1

182

1

0

 

 

All fields are INT

 

Many Thanks

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/237524-multiple-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.