Okay so I've searched just about everywhere but can't seem to find what I'm looking for. I'm learning as I go with PHP and I'm having a problem figuring out what is wrong.
I've got two different queries calling a group of information. Within each query is a field that is the same. I want to use an if statement to pull another field comparing the two identical fields. The if statement is the only problem in the code. Everything else works fine. I'm not even sure this is possible.
Here is the piece that is the problem:
if ($row['id'] == $dec['id'])
{
echo "<td>".$dec['apdc_code']."</td>";
}
Like I said this is the only piece with a problem, so I didn't post the whole code. Is this possible? Am I missing something? Any help would be great! Thanks!