I've got a query running that pulls back the desired data. However, I want to pull back a field (Section_Value) where Section_ID = 1, or 2, or 3 (depending). Here's the query:
$sql = "SELECT * FROM resume INNER JOIN candidate WHERE candidate.Candidate_ID = '".$id."'
AND
resume.Candidate_ID = candidate.Candidate_ID";
Now I want to do something like the following:
<?php echo $row['Section_Value']; ?>
Except Section_Value is different where Section_ID is 1, or 2, or 3, etc.
How does it get set up? Do I have to do an IF statement of some sort, or do I need to do something like the following:
<?php echo $row['Section_Value'][1]; ?>
Thanks,
Eve