yeahz Posted April 3, 2009 Report Share Posted April 3, 2009 Kāpēc ja es rakstu šādi ... echo "<td valign='top'>" . laiks(120) . "</td>"; ... tad šie cipari aiziet uz iepriekšējo <td>? Un funkcija izskatās šāda: function laiks($value) { if ($value <= 3600) { echo $value/60; } } PS ja raksta bez laiks() funkcijas tad viss ir ok. Quote Link to comment Share on other sites More sharing options...
werd Posted April 3, 2009 Report Share Posted April 3, 2009 function laiks($value) { if ($value <= 3600) { return $value/60; } } Quote Link to comment Share on other sites More sharing options...
yeahz Posted April 3, 2009 Author Report Share Posted April 3, 2009 paldies. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.