#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    204
    Rep Power
    2

    Customer details page? with get? (image included)


    I have a list of customers.. which i get from a database.. Now i want to have a details page for every customer.. How would i do this? image ->.




    thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,343
    Rep Power
    594
    Make "DETAILS" a link to another PHP page using whatever uniquely identifies that customer as an argument then query the database for the details and output them.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    204
    Rep Power
    2
    Originally Posted by gw1500se
    Make "DETAILS" a link to another PHP page using whatever uniquely identifies that customer as an argument then query the database for the details and output them.
    I'm fairly new to PHP. I understand a unique identifier. But how would i do this? Something with GET? thanks
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,343
    Rep Power
    594
    If the customer id is not sensitive data, then yes. Simply put that into the respective URL and retrieve it from '$_GET'.

    http://somehost.domain.com?custid=123456

    PHP Code:
    $custid=$_GET['custid']; 
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  8. #5
  9. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    204
    Rep Power
    2
    Perfect! I'm gonna try this in the morning! Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo