Buying php tweak

Discussion in 'Programming' started by krkbkk, Jan 5, 2013.

  1. #1
    I've a site in .php where I need two minor tweaks.

    (1) The server time is US based. I wanted it to be displayed in IST.

    (2) I want to display certain fields from a table based on the login user name.

    I need some one to start this now and will finish quickly.

    I can provide you ftp details.

    My maximum budget is US$ 15

    I can pay only after finishing the job.
     
    krkbkk, Jan 5, 2013 IP
  2. krkbkk

    krkbkk Well-Known Member

    Messages:
    1,458
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    195
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    *** Got a programmer to do this task ***

    Dont send any more PMs. Thanks.
     
    krkbkk, Jan 5, 2013 IP
  3. edduvs

    edduvs Well-Known Member

    Messages:
    394
    Likes Received:
    31
    Best Answers:
    3
    Trophy Points:
    160
    As Seller:
    100% - 2
    As Buyer:
    100% - 0
    #3
    Why paying for such things, really, next time you have trouble with the server time (timezone), go to your server's php.ini (usually /etc/php.ini) but if you dont find it, use "# yum install mlocate (or apt-get install mlocate for ubuntu/debian) # updatedb # locate php.ini , search for timezone and change it to country / city format.

    And for the things you want to display from db related to username:
    $sql = mysql_query("SELECT id,age,name,gender FROM users WHERE username = '".$username."' LIMIT 1");
    $_sql = mysql_fetch_assoc($sql);

    and now display the data to fit your needs like echo $_sql['age']; , or any other field you like. Get some beginner mysql tutorials or get help on forums like this.
     
    edduvs, Jan 6, 2013 IP
  4. krkbkk

    krkbkk Well-Known Member

    Messages:
    1,458
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    195
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Thanks! :)
     
    krkbkk, Jan 7, 2013 IP