Skip to main content
Inspiring
October 19, 2007
Question

coding problem

  • October 19, 2007
  • 4 replies
  • 699 views
I have created a counter that when a user accesses a flash file it sends an "id" variable to a php file that then adds 1 to a text file called "id". But i have tried alot but dont seam to get this working. I have seen something similar but that required a php file for each counter, i have instead used the "id" variable instead.

Here are my codes. please help if possible, im really struggling.

Jake Aston
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
October 20, 2007
good.
jak9942Author
Inspiring
October 20, 2007
this still doesnt appear to be working. if changed a few codes. could you look through them again, i dont know what im missing!
jak9942Author
Inspiring
October 20, 2007
i have solved my problem but im not sure how. there was no major work done to it but i think i was going wrong with the coding expressions, like ".$id" so all is well :D
Participating Frequently
October 20, 2007
<?php
$id = $_GET['id'];
...
...
...?
kglad
Community Expert
Community Expert
October 19, 2007
where's $id defined in your php file?

and the + used in your loadVariables parameter is a concatenation operator so you're attaching 1 variable (id). if you mean to attach two variables (id and num) use the ampersand between id and "num"
jak9942Author
Inspiring
October 20, 2007
quote:

Originally posted by: kglad
where's $id defined in your php file?

and the + used in your loadVariables parameter is a concatenation operator so you're attaching 1 variable (id). if you mean to attach two variables (id and num) use the ampersand between id and "num"


the num is simply to stop cache. i didnt know i needed to define $id that way but ggshow has corrected it for me. thanks, i forgot to use & instead of +. its difficult scripting in several languages at once