par
rami » 08 juil. 2005, 17:48
Il faut fixer la taille de ta cellule. Par exemple, 200px.
html>
<head>
<title>MVM</title>
</head>
<body>
<TABLE border=2 width=975>
<tr>
<td width=158 height=173>
<img src="logo.jpg" width="157.5" height="172.5" alt="" border="0" />
</td>
<td valign="top">
<FONT SIZE=2>
<FONT COLOR="#0000FF">
<div align="right">
<?php
$date = date("d-m-Y");
Print("Nous sommes le $date");
?>
<br>
<FONT SIZE=2>
<?php
$heure = date("H:i");
Print("il est $heure");
?>
</div>
</FONT>
</td>
</tr>
</table>
<br>
<p align="center"><b><font size="3" ><u>News du Site</u><br>
</b></p>
<p align="center"> </p>
<table width="230" border="2" align="center">
<tr >
<td width="200" align="center">
<div align="center">
<?
$separateur=";";
$champ="c:\EasyPHP1-8\www\champ.csv";
function read_csv( $champ, $separateur)
{
if ( $FILE=fopen($champ,"r") )
{
while ($ARRAY[]=fgetcsv($FILE,1024,$separateur));
fclose($FILE) ;
array_pop($ARRAY);
return $ARRAY ;
}
}
$ARRAY=read_csv($champ,$separateur);
?>
<?
$heigh=sizeof($ARRAY);
$width=sizeof($ARRAY[0]);
$ARRAY=array_reverse($ARRAY,false);
echo "<TABLE>";
for($i=0;$i<3;$i++)
{
echo "<TR>\n";
for($j=1;$j<3;$j++)
{
echo "<TD width=\"200\">";
if( $ARRAY[$i][$j]=="" )
echo "";
else
{
echo "<center>";
echo htmlspecialchars($ARRAY[$i][$j], ENT_QUOTES);
echo "</center>";
}
echo "</TD>\n";
}
echo "</TR>\n";
}
echo "</TABLE>\n";
?>
</tr >
</td>
</table>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><a href="www.mvm-parisot.com"><img src="parisot3.JPG" width="83" height="82" border="0"></a>
</p>
<tr>
<td width=158 heigh=173>
</td>
</tr>
<table>
</body>
</html>
De plus, je te déconseille les url local(C:\...). Mets plutot le chemin relatif à partir de ton script

Il faut fixer la taille de ta cellule. Par exemple, 200px.
[php]
html>
<head>
<title>MVM</title>
</head>
<body>
<TABLE border=2 width=975>
<tr>
<td width=158 height=173>
<img src="logo.jpg" width="157.5" height="172.5" alt="" border="0" />
</td>
<td valign="top">
<FONT SIZE=2>
<FONT COLOR="#0000FF">
<div align="right">
<?php
$date = date("d-m-Y");
Print("Nous sommes le $date");
?>
<br>
<FONT SIZE=2>
<?php
$heure = date("H:i");
Print("il est $heure");
?>
</div>
</FONT>
</td>
</tr>
</table>
<br>
<p align="center"><b><font size="3" ><u>News du Site</u><br>
</b></p>
<p align="center"> </p>
<table width="230" border="2" align="center">
<tr >
<td width="200" align="center">
<div align="center">
<?
$separateur=";";
$champ="c:\EasyPHP1-8\www\champ.csv";
function read_csv( $champ, $separateur)
{
if ( $FILE=fopen($champ,"r") )
{
while ($ARRAY[]=fgetcsv($FILE,1024,$separateur));
fclose($FILE) ;
array_pop($ARRAY);
return $ARRAY ;
}
}
$ARRAY=read_csv($champ,$separateur);
?>
<?
$heigh=sizeof($ARRAY);
$width=sizeof($ARRAY[0]);
$ARRAY=array_reverse($ARRAY,false);
echo "<TABLE>";
for($i=0;$i<3;$i++)
{
echo "<TR>\n";
for($j=1;$j<3;$j++)
{
echo "<TD width=\"200\">";
if( $ARRAY[$i][$j]=="" )
echo "";
else
{
echo "<center>";
echo htmlspecialchars($ARRAY[$i][$j], ENT_QUOTES);
echo "</center>";
}
echo "</TD>\n";
}
echo "</TR>\n";
}
echo "</TABLE>\n";
?>
</tr >
</td>
</table>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><a href="www.mvm-parisot.com"><img src="parisot3.JPG" width="83" height="82" border="0"></a>
</p>
<tr>
<td width=158 heigh=173>
</td>
</tr>
<table>
</body>
</html>
[/php]
De plus, je te déconseille les url local(C:\...). Mets plutot le chemin relatif à partir de ton script ;)