Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Profile hit counter ?

  1. #11
    gvpm
    Guest

    Default

    ok update you can insert this into your database chage the values to fit your needs

    PHP Code:
    CREATE TABLE `TrackAll` (
      `
    ProfileIDmediumint(9NOT NULL default '0',
      
    KEY `ProfileID` (`ProfileID`)
    TYPE=MyISAM
    then in profile.php insert this
    PHP Code:
    db_res ("INSERT INTO `TrackAll` ( `ProfileID`) VALUES ('$ID')"); 
    and then i member.php insert

    PHP Code:
    $counter db_arr("SELECT COUNT(*) FROM `TrackAll` WHERE `ProfileID` = {$profileID}"); 
    AND REPEAT THE STEPS I DID FOR THE OTHER COUNTER

    what this does is everytime the profile is viewed it automatically inserts the profile id into the database no matter who views it .

  2. #12
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    I followed that exactly, and I got "database access error". I give up haha
    SocialEngine 2.81 Nulled

  3. #13
    gvpm
    Guest

    Default

    what does the error say ? when it sends the email report?

  4. #14
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    Error in /member.php: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    Query: 'SELECT COUNT(*) FROM `TrackAll` WHERE `ProfileID` = '

    What lines do I need to insert your code? And the MySQL query was perfect, so its not that.
    SocialEngine 2.81 Nulled

  5. #15
    gvpm
    Guest

    Default

    what that mean is its not finding the number you inputed your syntax is probaly wrong in the select statement make sure in the where clause it says WHERE `ProfileID` = {member['ID']}

  6. #16
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    I put exactly what you instructed. Im confused.
    SocialEngine 2.81 Nulled

  7. #17
    gvpm
    Guest

    Default

    post your script of exactly how it looks in your php files

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Allowed Actions (Counter)
    By tinman in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 07-12-2009, 09:37 PM
  2. gallery.php counter on profile
    By driver_x in forum Free Mod Exchange
    Replies: 6
    Last Post: 06-11-2007, 11:15 PM
  3. Text Counter
    By mirepup in forum FAQ & HOWTO
    Replies: 1
    Last Post: 04-14-2007, 12:45 PM
  4. How to include counter
    By Kleetus in forum Other 3rd Party Applications
    Replies: 0
    Last Post: 01-04-2007, 08:46 PM
  5. Guest Counter & HOSTING
    By outlander in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 03-16-2006, 10:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •