mjahkoh Posted January 21, 2010 Share Posted January 21, 2010 Why would i construct a concat as below concat (a,b , if (z=1,'c','cc'), if(y=1,'d','dd') ) where the results of if (z=1,'c','cc') and if(y=1,'d','dd') are added to the string depending with their results. Link to comment https://forums.phpfreaks.com/topic/189293-concat-with-multiple-ifs/ Share on other sites More sharing options...
fenway Posted January 21, 2010 Share Posted January 21, 2010 Huh? Are you asking why you would do it? How would I know? Link to comment https://forums.phpfreaks.com/topic/189293-concat-with-multiple-ifs/#findComment-999537 Share on other sites More sharing options...
mjahkoh Posted January 25, 2010 Author Share Posted January 25, 2010 How would i construct a concat as below concat (fielda,fieldb , if (fieldz=1,'cat','dog'), if(fieldy=1,'dog','mouse') ) the concat is ok without the ifs and appends the result of evaluating if (fieldz=1,'cat','dog') and if(fieldy=1,'dog','mouse') ) to fielda and fieldb Thanks in advance Link to comment https://forums.phpfreaks.com/topic/189293-concat-with-multiple-ifs/#findComment-1001199 Share on other sites More sharing options...
fenway Posted January 28, 2010 Share Posted January 28, 2010 I'm sorry, I don't follow -- maybe someone else will help. Link to comment https://forums.phpfreaks.com/topic/189293-concat-with-multiple-ifs/#findComment-1002783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.