• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get single message for multiple objects?

Hi Rajesh. Fortunately, I think the solution to your problem is easy.

This line of code in your callback function
PHP Code:
if($category=='' && $sub_category=='' && $occasion==''

should be instead
PHP Code:
if($category=='' || $sub_category=='' || $occasion==''

This is because, when you use && (and), it's only TRUE if all three fields are '', but you want it to be TRUE if any field is '', so you must use || (or).
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!

Messages In This Thread
RE: How to get single message for multiple objects? - by RobertSF - 02-04-2015, 06:08 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.