close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

menu displays - until adding stats tracking

Thread began 7/01/2012 5:44 am by Sweens | Last modified 7/02/2012 2:13 am by Sweens | 495 views | 2 replies


menu displays - until adding stats tracking


I've successfully added the menu to pages, but as soon as I add the following code, the rest of the page displays properly, but the dynamic menu does not.

$con = mysql_connect("localhost","*******","*********");
if (!$con)
die('Could not connect: ' . mysql_error());
}mysql_select_db("******", $con);

mysql_query("UPDATE HomepageHits SET HomepageHits = HomepageHits +1
WHERE ClubID='$_GET[ClubID]'");

//collect information...
$browser =$_SERVER['HTTP_USER_AGENT']; // get the browser name
$ip = $_SERVER['REMOTE_ADDR']; // get the IP address
$from_page = $_SERVER['HTTP_REFERER'];// page from which visitor came
$club = $_GET['ClubID'];
// Query for getting visitor countrycode
$country_query = "SELECT COUNTRY_CODE2 FROM iptoc ".
"WHERE IP_FROM<=inet_aton('$ip') ".
"AND IP_TO>=inet_aton('$ip') ";
$country_exec = mysql_query($country_query);
//Insert the data in the table...
$query_insert ="INSERT INTO pagestats
(browser,ip,date_visited,from_page,country,ClubID) VALUES
('$browser','$ip',now(),'$from_page','$country_code','$club')" ;
$result=mysql_query ( $query_insert);

Any ideas on what i need to change either in the css menu file or the code above?

Many thanks

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...