Results 1 to 10 of 10

Thread: Can you please help? Don't know the name of script!

  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Can you please help? Don't know the name of script!

    Hi,
    I have been looking all day on your site for a script and I donít know the name of it to save my life. I went to this web page called www.roadtechs.com and on the middle of the page where it says welcome to Roadtechs.com beneath that it has a scripts for example says: 130 new jobs posted so far today and they have been viewed 5748 times. Do you have this script on your site? Where can I download it? Can you please help me?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    This is not a simple javascript code, or even a complex javascript code. Although I couldn't figure out what language they're using, but I know it's server side scripting. If anything I'd use MySQL and PHP.
    Search Google for tutorials.
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    runningscared (07-03-2008)

  4. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    They are using AJAX and JavaScript, possibly some ASP.

    -magicyte

  5. The Following User Says Thank You to magicyte For This Useful Post:

    runningscared (07-03-2008)

  6. #4
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Do you know what it's call? How can I find the name of it?

  7. #5
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    You can't find the name of it, you can make your own. Like I said it requires a database.
    Jeremy | jfein.net

  8. The Following User Says Thank You to Nile For This Useful Post:

    runningscared (07-04-2008)

  9. #6
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    You can try to play on php session:
    PHP Code:
    <?php
    session_start
    (); 
    if(isset(
    $_SESSION['views']))
    $_SESSION['views']+=1// store session data
    else
    $_SESSION['views']=1;
    ?>

    We've got a number of jobs which is viewed <?php echo $_SESSION['views']; ?> times.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  10. The Following User Says Thank You to rangana For This Useful Post:

    runningscared (07-04-2008)

  11. #7
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    @rangana:

    That would only work for the current visitor and every time a new visitor went to the site would get the following (the first time):

    We've got a number of jobs which is viewed 1 times.
    @magicyte:
    Why use any kind of Javascript, when all you need is the server-side language and a database (whether it be a flat file or an actual db server).

    @runningscared:

    As Nile stated, its not a matter of it being a script, but something that you would need to write the php script to be something like the following:

    Code:
    <?php
     include('db_connect.php'); //connect to db
     $jobs = mysql_query("SELECT * FROM `jobs_table`");
     
    echo 'We have <b>'.mysql_num_rows($jobs).'</b> Total Jobs';
    ?>
    Hope this helps.
    Last edited by thetestingsite; 07-04-2008 at 01:43 AM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  12. The Following User Says Thank You to thetestingsite For This Useful Post:

    runningscared (07-04-2008)

  13. #8
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Ahh, someone understands me.
    Jeremy | jfein.net

  14. The Following User Says Thank You to Nile For This Useful Post:

    runningscared (07-04-2008)

  15. #9
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Quote Originally Posted by thetestingsite View Post
    @ragana:

    That would only work for the current visitor and every time a new visitor went to the site would get the following (the first time):
    You missed rangana

    Anyway, yes, you're right.
    PHP Code:
    <?php
    session_start
    (); 
    if(isset(
    $_SESSION['views']))
    $_SESSION['views']+=1// store session data
    else
    $_SESSION['views']=1;
    ?>

    We've got a number of jobs which is viewed 
    <?php if ($_SESSION['views']==1) echo $_SESSION['views'].' time'; else echo $_SESSION['views'].' times';?>
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  16. The Following User Says Thank You to rangana For This Useful Post:

    runningscared (07-04-2008)

  17. #10
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by rangana View Post
    You missed rangana
    oops. fixed now
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  18. The Following User Says Thank You to thetestingsite For This Useful Post:

    runningscared (07-04-2008)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •