Re: track click throughs
| From: | Daniel Kullik | Date: | Fri, 16 Jul 2004 08:13:48 +0000 |
| Subject: | Re: track click throughs | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190686@lists.php.net to get a copy of this message | ||
mysql_query() should return a boolean true if your insert-query works.
Check that.
[code]
print (mysql_query('insert bla...')) ? '(-:' : ')-:';
die();
[/code]
Cab wrote:
Ed, Sorry it redirects now but on checking the database is no longer being updated? <?php require_once('/home/virtual/<site>/var/www/cgi-bin/Connections/DB_connection _script.php'); $newUserTracking = mysql_query("INSERT INTO track (user,type) VALUES (' ','Join')"); Header("Location: https://secure.ibill.com/cgi-win/ccard/rscookie.exe?RevShareID=what ever&returnto=http://www.google.com/index.htm"); ?> Help Col "Ed Lazor" <Ed.Lazor@d20News.com> wrote in message news:php.general-190677@news.php.net...-- WWE e-commerce IT GmbH Eiffestrasse 462, D-20537 Hamburg Tel.: +49-40-2530659-0, Fax: +49-40-2530659-50Check the script that records the click. It shouldn't have any output, spaces, or extra lines before or after <?php ?>been-----Original Message----- From: cab [mailto:m4m@petcol.com] Sent: Thursday, July 15, 2004 9:39 PM To: php-general@lists.php.net Subject: [PHP] track click throughs Hi, newbie question I have a linked image, I want to track the users/times the image hasclicked. I've set up another .php page that populates a database with the click, then I wanted to: Header("Location: http://someothersite "); but I get the lovely Headers already set error message. Any suggestions please? Locations of tutorials on this sort of thing. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php