jigsawsoul Posted January 24, 2010 Share Posted January 24, 2010 if(trim($row['role']) == 'Secretary') && ($row['staff_id']) == $staffid) { $secretarybook = "Minutes Not Published"; } else { $secretarybook = 'cock'; } How comes the && doesn't work here am i using it in the wrong place ? Link to comment https://forums.phpfreaks.com/topic/189665-php-not-working/ Share on other sites More sharing options...
connex Posted January 24, 2010 Share Posted January 24, 2010 if((trim($row['role']) == 'Secretary') && (($row['staff_id']) == $staffid)) Try that. Link to comment https://forums.phpfreaks.com/topic/189665-php-not-working/#findComment-1000964 Share on other sites More sharing options...
cs.punk Posted February 11, 2010 Share Posted February 11, 2010 Try if(trim($row['role']) == 'Secretary') && $row['staff_id'] == $staffid) Link to comment https://forums.phpfreaks.com/topic/189665-php-not-working/#findComment-1010587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.