I could use some help

Discussion in 'PHP' started by MakeThatDollar, Feb 21, 2007.

  1. #1
    I have a new site for URL shortening services at http://nuurl.com.

    I could use some help in adding additional features such as showing the number of characters for the old URL and the new URL that's created.

    I'd also like to be able to have a list of the 10 most recent links added.

    Can someone help?
     
    MakeThatDollar, Feb 21, 2007 IP
  2. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You can use strlen for finding the length of the string. How do you provide the shortened url? By having a corresponding entry in your database? In that case you can retrieve the last 10 entries without much work.
     
    Aragorn, Feb 21, 2007 IP
  3. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Use strlen() to get length of old and new url, and make a query to DB

    $sql = "SELECT * FROM YOURTABLE ORDER BY id DESC LIMIT 10";

    Hope this helps.
     
    designcode, Feb 21, 2007 IP
  4. MakeThatDollar

    MakeThatDollar Notable Member

    Messages:
    4,451
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    225
    #4
    Thanks for your all help but I'm not sure what to do really.

    I'd like more things added as well, and I'd be able to offer advertisements and stuff in exchange.

    Please PM me if anyone is interested in helping me out here.

    Oh yeah, the new URL is http://nuurl.us now. It's shorter than the other :).

    Thanks!
     
    MakeThatDollar, Feb 22, 2007 IP