Files
Testing/alltravel.php

32 lines
867 B
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php
$page = "general";
include "header.php";
if( !$user->user_exists)
{
$page = "error";
$smarty->assign('error_header', 639);
$smarty->assign('error_message', 656);
$smarty->assign('error_submit', 641);
include "footer.php";
}
function general(){
global $user, $database;
?>Go to 'My Profile' to enter your travel information.<table><?
$query=$database->database_query("SELECT COUNT(*) as cnt, country FROM travelers WHERE depart>".time()." GROUP BY country");
while($row=$database->database_fetch_array($query))
{
?><tr><td><?=$row["country"]?></td><td><a href="viewtravel.php?country=<?=$row["country"]?>"><?=$row["cnt"]?> travelers</a></td></tr><?
}
?>
</table>
<?
}
// ASSIGN SMARTY VARS AND INCLUDE FOOTER
$smarty->assign('forumcats', $forumcat_array);
$smarty->assign('forum_is_moderator', $forum_is_moderator);
include "footer.php";
?>