Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. getting information from the url

getting information from the url

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
questionphpdatabasemysqlhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SRJ92
    wrote on last edited by
    #1

    hello, i am in the process of making a download counter for external link, so when the user clicks the link to dilesharing site the download is noted and 1 is added to the mysql database ... here is how i make the id... echo"<a href=\"download_count.php?id=". $row['upload_id'] . "\">Download</a>"; now i get this when i click download ... http://localhost/website/download_count.php?id= 54 now thats related to the record in a mysql databas, as you have probably guessed .... how do i get that id in the url so i can use it in the download_count.php file which will allow me to make a function to add 1 ?? thanks for all your help in advance ...

    L 1 Reply Last reply
    0
    • S SRJ92

      hello, i am in the process of making a download counter for external link, so when the user clicks the link to dilesharing site the download is noted and 1 is added to the mysql database ... here is how i make the id... echo"<a href=\"download_count.php?id=". $row['upload_id'] . "\">Download</a>"; now i get this when i click download ... http://localhost/website/download_count.php?id= 54 now thats related to the record in a mysql databas, as you have probably guessed .... how do i get that id in the url so i can use it in the download_count.php file which will allow me to make a function to add 1 ?? thanks for all your help in advance ...

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      a little Google action would have yielded pages such as this one[^]. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Prolific encyclopedia fixture proof-reader browser patron addict?
      We all depend on the beast below.


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups