<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:odd things when clicking on websites (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:odd things when clicking on websites
#1659
Tim (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
odd things when clicking on websites 11 Months, 1 Week ago Karma: 0  
We now get this when you click on a website link

Table 'dragraci_motorlinks.page_track' doesn't exist

um, what have I removed that I shouldn't have done...

ta
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1660
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:odd things when clicking on websites 11 Months, 1 Week ago Karma: 9  
Not sure how this might have happened.. but..
The latest version allows for tracking and generating reports
of click activity in the admin panel.

If you don't care abut that, edit out.php , block comment the code near the bottom so it looks like this

Code:

/* if ($ID > 0){ $page_desc = "<a href=./edit_site.php?ID=".$ID.">EDIT</a>"; $user_agent = mysql_real_escape_string(getenv("HTTP_USER_AGENT")); $ip = getenv("REMOTE_ADDR"); $date_added = date("Y-m-d"); $table_name = "page_track"; $sql = "insert into $tb_track values ('', '$ID', '$page_desc', '$user_agent', '$ip', '$date_added')"; $result = mysql_query($sql) or die (mysql_error()); } */
Otherwise, use PHPMyadmin and create the table with this MySQL query
Code:

CREATE TABLE IF NOT EXISTS `phplinks_track` ( `ID` int(11) NOT NULL auto_increment, `page_name` varchar(50) NOT NULL default '', `page_desc` text NOT NULL, `user_agent` text NOT NULL, `ip` varchar(25) NOT NULL default '', `date_added` date NOT NULL default '0000-00-00', PRIMARY KEY (`ID`) );
 
Report to moderator   Logged Logged  
 
Last Edit: 2011/06/09 07:11 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008