Hey all. So far I've been thrilled with the help here and getting my stuff accomplished. Today brings something that logically should work, but isn't.. Feel free to hit me over the head when you show me something insanely simple. if ($eng == "18" || "20") && ($p_sscolor == "Clear") { $p_sscolor = "N/A"; } PHP: I've tried it with single pipes and ampersands, same results, errors.. Thanks guys!
Ok, see, thats stupid simple and makes me feel like a fool.. However.. I now get a Parse error: syntax error, unexpected T_BOOLEAN_AND.... on the If line.
I've also tried: if (($eng == "18") || ($eng == "20")) && ($sscolor == "Clear") PHP: everything with single and double pipes/apersands.. All I'm trying to do is check if $eng is 18 or 20 and $sscolor is Clear, and if so, reset $sscolor to N/A.. Perhaps I'm going about it the wrong way?
You need the if 'test' to be a single, enclosed test... Try: if ((($eng == "18") || ($eng == "20")) && ($sscolor == "Clear")) instead, to tie all three in together.
Finally! The one step further I didn't think of.. plz slap me senseless... Then make sure I give you Great Thanks!