Datetime

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
silgol
Forum Newbie
Posts: 11
Joined: Fri Jan 24, 2003 1:31 pm

Datetime

Post 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>";
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post 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>";
?>
silgol
Forum Newbie
Posts: 11
Joined: Fri Jan 24, 2003 1:31 pm

Post by silgol »

I do not reach to understand it. Please it would need but details,
thanks
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

check my reply in this post:
viewtopic.php?t=17911
Post Reply