Page 1 of 1

Datetime

Posted: Mon Feb 09, 2004 8:40 am
by silgol
In a program php desire to print only the date of a variable of a
table mssql and also leaves the hour to me. The variable is row(9)

echo "%
</td>
</tr>
</table>
</td>
<td width=70 valign=middle align=right class=Gris10>
$ " . number_format ($row[2]/$Prop,0,',','.') .
</td>
<td width=35 valign=middle align=right class=Blanco11>$row[5]</td>
</td>
<td width=105 valign=middle align=right class=Blanco11>$row[9]</td>
</tr>";

Posted: Mon Feb 09, 2004 3:17 pm
by DuFF
I think you have to exit the echo to output arrays.
Try this:

Code: Select all

<?php
echo "%
</td>
</tr>
</table>
</td>
<td width=70 valign=middle align=right class=Gris10>
$ " . number_format ($row[2]/$Prop,0,',','.') .
"</td>
<td width=35 valign=middle align=right class=Blanco11>" . $row[5] . "</td>
</td>
<td width=105 valign=middle align=right class=Blanco11>" . $row[9] . "</td>
</tr>";
?>

Posted: Tue Feb 10, 2004 5:55 am
by silgol
I do not reach to understand it. Please it would need but details,
thanks

Posted: Tue Feb 10, 2004 2:27 pm
by Cruzado_Mainfrm
check my reply in this post:
viewtopic.php?t=17911