Informations sur: substring

Publié par sasuke83 le 27/03/2007

Description

mon tablo avec substring, qui ne marche pas...

Code source (langage php)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$reponse = mysql_query("SELECT id, pseudo, date, heure, minute, substring(news,1,10)  FROM news ORDER BY id DESC LIMIT 10"); ?>
<?php
while ($donnees = mysql_fetch_array($reponse) )
{ ?>
</p>
<table width="884" border="1" align="center" cellpadding="0" cellspacing="0">
 
<tr align="left" bgcolor="#DEE7F7">
<td width="123" height="28"><u><strong><?php echo $donnees['pseudo']; ?></strong></u></td>
<td width="90" class="Style1"><span style="margin-top: 0; margin-bottom: 0"><?php echo $donnees['date']; ?></span></td>
<td width="76" class="Style1"><span style="margin-top: 0; margin-bottom: 0"><?php echo $donnees['heure']; ?></span>h<span style="margin-top: 0; margin-bottom: 0"><?php echo $donnees['minute']; ?></span></td>
<td width="449" class="Style1"><?php echo $donnees['news']?></td>
<td width="134" class="Style1"><div align="center"><u><span class="Style3"><?php echo $donnees['id']; ?></span></u></div></td>
</tr>
</table>
 
<?php } ?>
</p>
v6 © Computaid SPRL 2005-2008 - Tous droits réservés - Hébergé par eTigris - Page générée en 0,046 s - Crédits - Stats
1 connecté