dgnzcn Posted February 1, 2014 Share Posted February 1, 2014 hi i write a code but not working. i wanna do this: id row if have 2 or more same value include a file but not working. where is my wrong? <?php if($js_inc["id"] >= 2){ include "fullscreenslideshow/inc.js.php"; }?> Quote Link to comment Share on other sites More sharing options...
doddsey_65 Posted February 1, 2014 Share Posted February 1, 2014 Can you show where $js_inc["id"] is defined? Your syntax is correct so the value of that must be less than 2. Quote Link to comment Share on other sites More sharing options...
dgnzcn Posted February 1, 2014 Author Share Posted February 1, 2014 yes it is defined. if there are same value for id include a file. still researcing correct code. Quote Link to comment Share on other sites More sharing options...
Psycho Posted February 1, 2014 Share Posted February 1, 2014 There is nothing wrong with the code. The problem has to be with the variable. what is the output of var_dump($js_inc["id"]); ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.