PHP expert |
|
ja, dat bedoel ik dolfje
maar ik begrijp er niets van, als ik dat topic lees, wordt ik
kan je meer uitleg geven?
ik heb nu dit:
<?
while($aFetch = mysql_fetch_assoc($cQuery))
{
$iKleuren++;
if($iKleuren == 2) {
//het getal is oneven!
$rij = "rij2";
$iKleuren = 0;
} else {
//het getal is even!
$rij = "rij1";
}
$nu = date("d-m-Y \o\m H:i", time());
?>
<tr class="<?= $rij ?>">
<td width="20%" valign="top">
<?
if($aFetch['gelezen'] == '0') {
echo '<font color="#0000FF">';
} elseif($aFetch['gelezen'] == '1') {
echo '<font color="#000000">';
} ?>
<?= $aFetch['datum']; ?>
</font>
</td>
<td width="20%" valign="top">
<?
if($aFetch['gelezen'] == '0') {
echo '<font color="#0000FF">';
} elseif($aFetch['gelezen'] == '1') {
echo '<font color="#000000">';
} ?>
<?= $aFetch['zender']; ?>
</font>
</td>
<td width="45%" valign="top">
<?
if($aFetch['gelezen'] == '0') {
echo '<font color="#0000FF">';
} elseif($aFetch['gelezen'] == '1') {
echo '<font color="#000000">';
} ?>
<?
$bericht = stripslashes(nl2br(wordwrap2($aFetch['bericht'])));
$bericht = str_replace(":D","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_biggrin.gif></img>",$bericht);
$bericht = str_replace(":d","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_biggrin.gif></img>",$bericht);
$bericht = str_replace("^^","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_cheesygrin.gif></img>",$bericht);
$bericht = str_replace(":p","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_tong.gif></img>",$bericht);
$bericht = str_replace(":P","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_tong.gif></img>",$bericht);
$bericht = str_replace(":s","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_confused.gif></img>",$bericht);
$bericht = str_replace(":cool:","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_cool.gif></img>",$bericht);
$bericht = str_replace(":o","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_eek.gif></img>",$bericht);
$bericht = str_replace(":$","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_redface.gif></img>",$bericht);
$bericht = str_replace(":\\","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_mad.gif></img>",$bericht);
$bericht = str_replace(":'(","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_cry.gif></img>",$bericht);
$bericht = str_replace(":|","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_neutral.gif></img>",$bericht);
$bericht = str_replace(":(","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_sad.gif></img>",$bericht);
$bericht = str_replace(":)","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_smile.gif></img>",$bericht);
$bericht = str_replace("oh","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_surprised.gif></img>",$bericht);
$bericht = str_replace(";-)","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_wink.gif></img>",$bericht);
$bericht = str_replace(";)","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_wink.gif></img>",$bericht);
$bericht = str_replace(":!:","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_exclaim.gif></img>",$bericht);
$bericht = str_replace(":?:","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_question.gif></img>",$bericht);
echo $bericht;
?>
</font>
</td>
<td width="15%">
<form name="delete" method="post" action="privebericht_delete.php">
<input type="checkbox" value="1" name="delete">
</td>
</tr>
<?
}
?>
<tr>
<td colspan="4" align="right">
<input type="submit" name="submit" value="Verwijder de geselecteerden">
</form>
</td>
</tr>
</table>
<? { $iKleuren++; if($iKleuren == 2) { //het getal is oneven! $rij = "rij2"; $iKleuren = 0; } else { //het getal is even! $rij = "rij1"; } ?> <tr class="<?= $rij ?>"> <td width="20%" valign="top"> <? if($aFetch['gelezen'] == '0') { echo '<font color="#0000FF">'; } elseif($aFetch['gelezen'] == '1') { echo '<font color="#000000">'; } ?> <?= $aFetch['datum']; ?> </font> </td> <td width="20%" valign="top"> <? if($aFetch['gelezen'] == '0') { echo '<font color="#0000FF">'; } elseif($aFetch['gelezen'] == '1') { echo '<font color="#000000">'; } ?> <?= $aFetch['zender']; ?> </font> </td> <td width="45%" valign="top"> <? if($aFetch['gelezen'] == '0') { echo '<font color="#0000FF">'; } elseif($aFetch['gelezen'] == '1') { echo '<font color="#000000">'; } ?> <? $bericht = str_replace(":D","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_biggrin.gif></img>",$bericht); $bericht = str_replace(":d","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_biggrin.gif></img>",$bericht); $bericht = str_replace("^^","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_cheesygrin.gif></img>",$bericht); $bericht = str_replace(":p","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_tong.gif></img>",$bericht); $bericht = str_replace(":P","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_tong.gif></img>",$bericht); $bericht = str_replace(":s","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_confused.gif></img>",$bericht); $bericht = str_replace(":cool:","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_cool.gif></img>",$bericht); $bericht = str_replace(":o","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_eek.gif></img>",$bericht); $bericht = str_replace(":$","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_redface.gif></img>",$bericht); $bericht = str_replace(":\\","<img src =http ://users.telenet.be/2bsim/2bsim/images/smileys/icon_mad.gif></img>",$bericht); $bericht = str_replace(":'(","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_cry.gif></img>",$bericht); $bericht = str_replace(":|","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_neutral.gif></img>",$bericht); $bericht = str_replace(":(","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_sad.gif></img>",$bericht); $bericht = str_replace(":)","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_smile.gif></img>",$bericht); $bericht = str_replace("oh","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_surprised.gif></img>",$bericht); $bericht = str_replace(";-)","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_wink.gif></img>",$bericht); $bericht = str_replace(";)","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_wink.gif></img>",$bericht); $bericht = str_replace(":!:","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_exclaim.gif></img>",$bericht); $bericht = str_replace(":?:","<img src=http://users.telenet.be/2bsim/2bsim/images/smileys/icon_question.gif></img>",$bericht); ?> </font> </td> <td width="15%"> <form name="delete" method="post" action="privebericht_delete.php"> <input type="checkbox" value="1" name="delete"> </td> </tr> <? } ?> <tr> <td colspan="4" align="right"> <input type="submit" name="submit" value="Verwijder de geselecteerden"> </form> </td> </tr> </table>
hoe kan ik nu kijken welke checkboxes er geselecteerd zijn,
ik begrijp dat ander topic echt nie |