elia wrote:
Thanks but it doesn't work! Pascal
Why? What happens? What did you expect? *How* does it not work?
See
http://www.php.net/string
<?php
error_reporting (E_ALL);
ini_set('displa y_errors', '1');
$quantite1 = 6;
$montant1 = 42;
### Method 1: double quote delimited string with embedded double quotes
if ($quantite1 0) {
echo "<tr>
<td align=\"left\" nowrap=\"nowrap \">Article 1</td>
<td align=\"center\ ">$quantite 1</td>
<td align=\"center\ ">20 €</td>
<td align=\"center\ ">$montant1 €</td>
</tr>";
}
### Method 1: double quote delimited string with embedded single quotes
if ($quantite1 0) {
echo "<tr>
<td align='left' nowrap='nowrap' >Article 1</td>
<td align='center'> $quantite1</td>
<td align='center'> 20 €</td>
<td align='center'> $montant1 €</td>
</tr>";
}
### Method 3: single quote delimited string with embedded double quotes
if ($quantite1 0) {
echo '<tr>
<td align="left" nowrap="nowrap" >Article 1</td>
<td align="center"> ', $quantite1, '</td>
<td align="center"> 20 €</td>
<td align="center"> ', $montant1, ' €</td>
</tr>';
}
### Method 4: heredoc syntax with embedded double quotes
if ($quantite1 0) {
echo <<<LINE
<tr>
<td align="left" nowrap="nowrap" >Article 1</td>
<td align="center"> $quantite1</td>
<td align="center"> 20 €</td>
<td align="center"> $montant1 €</td>
</tr>
LINE;
}
?>
--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot