Jump to content

yazah

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Everything posted by yazah

  1. I got this code made for me to put on my google search code. <?php $click_value = '0.001'; //Amount in dollars that each click is worth function increment_clicks() { //Get current click count if(file_exists('click_count.txt')) $clicks = file_get_contents('click_count.txt'); else $clicks = 0; //Add current click to count $clicks++; //Save new value to file $file = fopen('click_count.txt', 'w'); fwrite($file, $clicks); fclose($file); } function get_click_amount() { global $click_value; //Get current click count if(file_exists('click_count.txt')) $clicks = file_get_contents('click_count.txt'); else $clicks = 0; //Return value of all clicks based on $click_value, formatted to 2 decimal places return number_format($clicks * $click_value, 3); } if (isset($_POST['search'])) { //Search button was clicked, increment count increment_clicks(); } $click_amount = get_click_amount(); ?> <html> <head> </head> <body> <center> <p id="click_amount">$<?php echo $click_amount; ?></p> <form action="" method="POST"> <input type="text" name="search" value="" /> <input type="submit" value="Search" /> </form> </center> </body> </html> Now i do not know how to put it in my google code if you put it on a page by itself it works. I do not know if i can list my google code here so if anyone can help i will pm them m google code. THANKS
  2. yazah

    Php code

    Did you click the link I put here it don't work. Maybe it is because I am trying to use it in a sunflower. Thanks
  3. yazah

    Php code

    here is the demo til the site is done then i will load it to the real ure http://1234sites.info/34/results.php?cx=partner-pub-7327945792706541%3Afgqbvq-lsc5&cof=FORID%3A10&ie=ISO-8859-1&q=pogo&sa=Search i want to make a file in the main site 1234sites.info/ads and make the ads show up in all the sun folders like this one is 1234sites.info/34 thanks
  4. yazah

    Php code

    I wrote that and did not work that showed up I put it there and exactly that showed up
  5. yazah

    Php code

    No I don't want someone to write it just to tell me what I'm doing wrong. That's all
  6. yazah

    Php code

    Getting file does not exist errors I am in another form and I was told can't be done.
  7. yazah

    Php code

    Ok ummmm. I Am making a website that will have about 1000 sub folders example site.com/1 now I want to run ads on them all on the right side and I tried (?php include ("site.com/ads.php");?) and put that in the spots in a few sub folders and got errors but when I took the site.com out and uploaded the ads.php file to the individual sub folders it worked but that way when I change ads I would need to do all 1000 individually I need a code that will edit them all at once is this better. Thanks
  8. yazah

    Php code

    I need a php code that I can put on all my subdirectories example site.com/hi and site.com/hey. But I do not want to edit them all one by one cause I will have like 1000 subdirectories I want it for ads and I need to be able to edit one file and show up on them all. I looked on google with no luck and was told to come here. Thankd
  9. here is the code.It is suppose to get stored in the data.txt file. Thanks <html> <head> <title>Register Yourself</title> </head> <script type="text/javascript"> function test() { var donation=document.getElementById("test").value; if (donation == null) { donation=0.0000; } var newdonation=donation+0.0001; document.getElementById("test").value=newdonation; document.getElementById("test").innerHTML="$"+newdonation.toFixed(4); } </script> <body> <input type="button" value="Search" onClick="test()"/> <div id="test" value=0>$0.0</div> <div id="result"> </div> <!-- end #mainContent --> </div><!-- end #container --> </div><script type="text/javascript">var obj = "search"; //Id name to call upData function when clickedvar target = "result"; //Id name of element to display resultvar url = "data.php"; //Url to server processing file data.php$(document).ready(function() { upData(0.000); $("#"+obj).click(function() { upData(0.001); });});function upData(data) { $.ajax({ type: "GET", url: url, data: "action=do&data="+data, success: function(msg) { $("#"+target).html('$'+msg); } });} </script></body></html>
  10. I dont know how to do that.I got the code made long ago.Anyone can help me please do so.I can send you the script if you can fix it for me..Thanks
  11. I have a script that when you click search it puts money into the script demo http://www.1234sites.info/333/test.html But when you refresh the page the money goes away.I want it to stay there. Any suggestions please and thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.