Jump to content
php.lv forumi

muļķīga kļūda ar <td> un funkciju


yeahz

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...