Hallo
Das folgendes nicht funktionniert weiss ich nun auch:
$headers = generate();
Aber wie erreicht man sowas?! Ich komm einfach nicht drauf.
Hier mein code, hoffe es ist selbsterklärend was ich machen will.
	
							
						
					Das folgendes nicht funktionniert weiss ich nun auch:
$headers = generate();
Aber wie erreicht man sowas?! Ich komm einfach nicht drauf.
Hier mein code, hoffe es ist selbsterklärend was ich machen will.
PHP Code:
	
	
<?php
function generate() {
    ?>
    <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td>
          <table width="100%" border="0" cellspacing="0" cellpadding="2">
            <tr bgcolor="#FFA500"> 
              <td class="style3">Date:</td>
              <td class="style3">Event:</td>
            </tr>
            <?php 
            while ($row_nlp2 = @ mysql_fetch_array ($result_nlp2)) {
            echo "<tr>\n"; 
            echo "    <td valign='top' class='nltd'>".nl2br($row_nlp2["p2cole"])."</td>\n";
            echo "    <td valign='top' class='nltd'>".nl2br($row_nlp2["p2colf"])."</td>\n";
            echo "</tr>\n";
            echo "<tr>\n";
            echo "  <td colspan='6'><hr color='#FFA500' size='1'></td>\n";
            echo "</tr>\n";
            }
            ?>
          </table> 
          <br>
        </td>
      </tr>
    </table>
<?php 
}
$headers = generate(); // <-- hier das problemchen...
if (mail("abc@xyz.com", "$subject" , "", $headers)) { //...<--- und hier
    echo "$msg1";
    } else {
    echo "$msg0";
}
?>
 
          

 ...
 ...
							
						
 
							
						
Comment