The MANUFACTURED HOUSING GLOBAL NETWORK


The WWW Guide to Manufactured Housing


Visitor Click-Thru Program
E-Mail: [email protected]
THE WWW GUIDE TO MANUFACTURED HOUSING
URL ID#
"; include "http://mobilehome.com/portal/inc/foot.inc"; ELSEIF ($uid != ''): PRINT "

"; MYSQL_CONNECT() OR DIE("Unable to connect to database"); @mysql_select_db( "redirect") or die( "Unable to select database"); $query = "SELECT * from urls where uid like '$uid'"; $result = MYSQL_QUERY($query); $number = MYSQL_NUMROWS($result); $i = 0; IF ($number == 0) : PRINT ""; ELSEIF ($number > 0) : WHILE ($i < $number): $url = mysql_result($result,$i,"url"); $counter = mysql_result($result,$i,"counter"); PRINT ""; $i++; ENDWHILE; ENDIF; IF ($month == ''): $month = date("M"); ENDIF; IF ($year == ''): $year = date("Y"); ENDIF; MYSQL_CONNECT() OR DIE("Unable to connect to database"); @mysql_select_db( "redirect") or die( "Unable to select database"); $query = "SELECT * from clicklog where uid like '$uid' and month like '$month' and year like '$year' order by cid desc"; $result = MYSQL_QUERY($query); $number = MYSQL_NUMROWS($result); $i = 0; IF ($number == 0) : PRINT ""; ELSEIF ($number > 0) : WHILE ($i < $number): $tdate = mysql_result($result,$i,"tdate"); $hostip = mysql_result($result,$i,"hostip"); $refer = mysql_result($result,$i,"refer"); PRINT ""; $i++; ENDWHILE; ENDIF; PRINT "
Time & DateVisitors IP
$tdate
$refer
$hostip

$month Click-Thru Report for the URL:

$url


Total of Click Thrus Since Inception = $counter


Total for $month, $year = $number


Display Report for Month:
Year:

"; include "http://mobilehome.com/portal/inc/foot.inc"; ENDIF; ?>