Jump to content

Recommended Posts

Posted

Hello coding Gurus :)

Why does this code produce no output?

<table>
<h3>Top Routes</h3>
<tr>
<td><?php echo StatsData::TopRoutes(); ?></td>
</tr>
</table>

Posted

The function returns an array of results, so if you want to build a table out of it you'll have to write your own loop. You can see the output using print_r(StatsData::TopRoutes());

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.   Restore formatting

  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...