Conditions help....
Hi there!
One question, how can I filter something coming from a database in PHP using a conditional, for example, I have a table with posted jobs, those jobs belongs to departments, for example
Brokerage - System
Brokerage - Management
Brokerage - Services
Brokerages - Payroll
Carrier - Real Estate
Carrier - Documents
Carrier - Programming
etc.
If you see, the departments are just 2 Brokerage and Carrier but in the database they are called like I described you Brokerage - Something and Carrier - Something.
I want to have 2 HTML tables, the table in the left with only posting the Brokerage Positions and the one in the right with the Carrier Positions, I used this on the left one:
<?php
if (@$row_rsBJ['Job_Department'] != "Brokerage") {
?>
<?php do { ?>
<table>
</table>
<?php } while ($row_rsBJ = mysql_fetch_assoc($rsBJ)); ?>
<?php }
but didn't work, I need to filter with something like "Send me only departments that start with brokerage" or something like that, but my programming expertise is minimal, any idea? or suggestion?
Thanks so much in advance!
Arturo