Hi,
I need some help badly.
I have the following code:
Now all that I want to do is add a second bunch of commands in there that checks to see if the same variables are met (type, client_id and active) but with the difference being that the "type" variable has a value of "1", the script would then display more html if that variable is met.
To simplify this: I need the script to first check if the first set of conditions is met: type=0 client_id = client_id and active=1
and then display some html if those conditions are met,
and then check and see if further conditions are met type=1 client_id = client_id and active=1
and then display more html if those conditions are met.
I hope I am being clear enough, I am modifiying this script and have NO clue how to do this, I have tried about 234 different things to no avail, if someone could hack together a quick fix and post it I would really appreciate it.
Thanks in advance.
George
I need some help badly.
I have the following code:
PHP:
<?php
while ($row = mysql_fetch_assoc($result))
if($row['type'] == 0){
if($row['client_id'] == $client_id){
if($row['active'] == 1){
echo '<tr bgcolor="f0f2ee">';
echo '<td bgcolor="#CCCCCC"><a href=projectmain.php?id='. $row['contest_id'] . ' target=_self> Custom Website Design for ' . $row['name'] .'</a></td>';
echo '<td bgcolor="#CCCCCC"><div align="center">' . $row['comments'] .'</div></td>';
echo "</tr>\n";
}
}
}
?>
Now all that I want to do is add a second bunch of commands in there that checks to see if the same variables are met (type, client_id and active) but with the difference being that the "type" variable has a value of "1", the script would then display more html if that variable is met.
To simplify this: I need the script to first check if the first set of conditions is met: type=0 client_id = client_id and active=1
and then display some html if those conditions are met,
and then check and see if further conditions are met type=1 client_id = client_id and active=1
and then display more html if those conditions are met.
I hope I am being clear enough, I am modifiying this script and have NO clue how to do this, I have tried about 234 different things to no avail, if someone could hack together a quick fix and post it I would really appreciate it.
Thanks in advance.
George






