<?php
$foto_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '" . (TIME - 300) . "' AND `url` like '/foto/%'"), 0);
echo " <span class = 'count'>";
echo mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery`"),0);
echo " | ";
echo mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto`"),0);
echo "</span><span class = 'count'>";
echo "$foto_user</span>";