Results 1 to 4 of 4

Thread: [RESOLVED] I have a php hitcounter that displays a count on my pages...

  1. #1

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Resolved [RESOLVED] I have a php hitcounter that displays a count on my pages...

    I have a php hitcounter that displays a count on my pages. In one page, i want to call the function, but with no output to the page. I've tried <input type="hidden", but it still displays the count.
    What am i doing wrong?

    Edit: I should mention, it's in a block of php code. I just need to call the function to increment the counter. I don't need to display the count anywhere.

  2. #2
    Hyperactive Member coothead's Avatar
    Join Date
    Oct 2007
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    284

    Re: I have a php hitcounter that displays a count on my pages...

    Hi there .paul,


    I think members here might need to see the PHP code in question,
    It would then give them a chance of possibly resolving your problem.


    ~ the original bald headed old fart ~

  3. #3

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: I have a php hitcounter that displays a count on my pages...

    Quote Originally Posted by coothead View Post
    Hi there .paul,


    I think members here might need to see the PHP code in question,
    It would then give them a chance of possibly resolving your problem.
    The function 'echoes' a number. If i do...

    $variable = myfunction(arg1, arg2);

    $variable is written on my screen. I could use a different php script without the echo, but i'd prefer not to. Alternatively i could rewrite the function to selectively echo the number.

  4. #4
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: I have a php hitcounter that displays a count on my pages...

    It sounds like myFunction does the echoing... so either you have to suffer it, change it, or create a different one.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

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



Click Here to Expand Forum to Full Width