//gif11.php accepts these parameters: $c; //correlates to fld_affil_num in the database - //unique for each site $s; //correlates to fld_special in the database $b; //random number - forces the gif to load, even if cached //generated by PHP and discarded -->
<?php
//gif11.php //don't have any extra spaces outside the <? ?> // or you could have a broken gif come back
if (!$logger_action) {echo "error in logger"; exit;} if (!$logger_special) {echo "error in logger"; exit;}
// //The following should be on one long line... //
$logger_sql="insert into tbl_activity_log values (".date("Ymd", mktime()).", ". //PHP method to build date "'".date("H", mktime())."', ". //PHP method to get hour "'$REMOTE_ADDR', ". //Get the IP address of client "$logger_action, ' ". //action as set up in gif11.php "$logger_special', ". //ditto "$fld_affil_num);"; //which web site
$res_logger = pg_Exec ($conn, $logger_sql);
if (!$res_logger) { echo "An error occured in the logger.\n"; echo pg_ErrorMessage(); exit; }