Page 3 of 8 FirstFirst 123456 ... LastLast
Results 25 to 36 of 86

Thread: PHP MySQL Class-19

  1. #25
    arshad5555 is offline Senior Member+
    Last Online
    24th May 2010 @ 11:36 PM
    Join Date
    12 Dec 2007
    Age
    46
    Posts
    43
    Threads
    7
    Credits
    997
    Thanked: 1

    Default

    shakeel bhai i want to contact u by email. plz send me ur email id at urducdtore at hotmail

  2. #26
    hanbal is offline Junior Member
    Last Online
    30th April 2011 @ 11:10 PM
    Join Date
    28 Mar 2009
    Posts
    11
    Threads
    2
    Credits
    0
    Thanked
    0

    Default

    Bro u r really doing a nice work
    how can i contact with You
    Thanks

  3. #27
    shakeel's Avatar
    shakeel is offline Senior Member+
    Last Online
    22nd July 2016 @ 07:02 PM
    Join Date
    04 Sep 2006
    Location
    Islamabad
    Posts
    177
    Threads
    30
    Credits
    992
    Thanked
    3

    Default

    Quote pakilala said: View Post
    Sir,

    My date of Birth is 03-Sept-1987

    and i want to compare it with current date i.e 08-April-2009.

    and output should be the my current age. like 22 Yeas 08 Months 25 Days


    plz help in my problem.
    this is a simple solution:
    PHP Code:
    <?php
        
    //your birthdate (YYYY-MM-DD)
        
    $dateofbirth strtotime("1987-09-03");    //converting to timestamp
        //currect date (timestamp)
        
    $today time();
        
    //difference
        
    $diff $today $dateofbirth;
        print 
    "Your age in days:".floor($diff/86400) . "<br>";
        print 
    "Your age in hours:".floor($diff/3600) . "<br>";
        print 
    "Your age in minutes:".floor($diff/60) . "<br>";
        
    //getting year timestamp (60*60*24*365) = 31536000 = one year
        
    $years floor($diff 31536000);
        
    $diff -= 31536000 floor($diff 31536000);
        
    //getting months (60*60*24*365/12) = 2678400 = one month)
        
    $months =floor($diff 2678400);
        
    $diff -= 2678400 floor($diff 2678400);
        
    // days (60 * 60 * 24 = 86400) =  one day
        
    $days floor($diff 86400);
        print 
    "Age: "$years " years " $months ." months ".$days ." days";
        
    ?>
    Output:
    Your age in days:7890
    Your age in hours:189375
    Your age in minutes:11362516
    Age: 21 years 7 months 8 days


    In rain all birds occupy shelter, but Eagle is the only 1 that avoids rain by flying above the clouds.



  4. #28
    mohdimran_kl is offline Senior Member+
    Last Online
    13th January 2018 @ 08:31 PM
    Join Date
    15 Feb 2009
    Age
    59
    Posts
    65
    Threads
    1
    Credits
    0
    Thanked: 1

    Default

    hi Shakeel,

    Please response on my query as well.....!

  5. #29
    shakeel's Avatar
    shakeel is offline Senior Member+
    Last Online
    22nd July 2016 @ 07:02 PM
    Join Date
    04 Sep 2006
    Location
    Islamabad
    Posts
    177
    Threads
    30
    Credits
    992
    Thanked
    3

    Default

    Quote arshad5555 said: View Post
    hello
    shakeel bhai i have a problem in class 2. main jab tools main jake preference ki setting karne ki liye debug and preview pe click karta hoon to app ne jo screenshot main 4 boxes dikhaye hain un main se oper wale 2 hi aate hain neeche wale nahi aate because us debug and preview wale folder main browser wala folder nahi hai. is ko kaise solve karna hai please reply?
    Thanks

    app kay PHP designer ka version dosra ho ga. app 2007 ya 2008 install kar lain. main nay jo screen shots deay hain wo PHP Designer 2007 Professional kay hain.

  6. #30
    shakeel's Avatar
    shakeel is offline Senior Member+
    Last Online
    22nd July 2016 @ 07:02 PM
    Join Date
    04 Sep 2006
    Location
    Islamabad
    Posts
    177
    Threads
    30
    Credits
    992
    Thanked
    3

    Default

    Quote mohdimran_kl said: View Post
    Hi Shakeel Bhai,

    Thanks for wonderful PHP tutorial and then plus point is in our own language.

    One thing, we learnt file upload, i tried with .dat and .txt file as you teach and we learnt insert record in table, but lets suppose i have one .xls file (columns student name, marks, exam date) and want to upload the same in our result table along with showing the same in page as we did in last class. Greatful if you explain/describe this as well.

    Thanks.
    Thanks...
    app php.net per visit karain or COM kay functions study kar lain. ya app excel ka data XML format main export kar kay us XML file ko PHP main parse kar lain. is kay alawa app www.phpclasses.org say excel read write ka class bhi download kar saktay hain.

  7. #31
    pakilala is offline Junior Member
    Last Online
    3rd July 2011 @ 03:03 PM
    Join Date
    16 Jan 2006
    Posts
    16
    Threads
    8
    Credits
    0
    Thanked
    0

    Default Thanks Shakeel Bhi

    Thanks Shakeel bhi, ap ny meri muskil asan kar di.

  8. #32
    ferozabzu is offline Senior Member+
    Last Online
    4th February 2010 @ 03:21 PM
    Join Date
    23 Dec 2008
    Location
    Rahim yar khan
    Age
    35
    Posts
    39
    Threads
    1
    Credits
    950
    Thanked
    0

    Default

    thanks uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu................ ...............

  9. #33
    Sainompk's Avatar
    Sainompk is offline Senior Member+
    Last Online
    24th December 2010 @ 04:36 PM
    Join Date
    02 Apr 2009
    Location
    Karachi
    Posts
    36
    Threads
    0
    Credits
    1,000
    Thanked
    0

    Default Agli Class ka Intizar Hai

    Agli Class jaldi post karain

  10. #34
    jaminee is offline Senior Member+
    Last Online
    30th September 2015 @ 07:02 AM
    Join Date
    25 Mar 2009
    Location
    Mandi Bahauddin
    Age
    40
    Posts
    91
    Threads
    21
    Credits
    838
    Thanked
    0

    Default

    Thanks for 19 class
    Very nice hai brother
    you are great
    thanks once again

  11. #35
    love4_any2005's Avatar
    love4_any2005 is offline Senior Member+
    Last Online
    22nd March 2013 @ 09:17 AM
    Join Date
    18 Dec 2007
    Age
    38
    Posts
    323
    Threads
    67
    Credits
    0
    Thanked
    0

    Default

    very nice brother

  12. #36
    pakilala is offline Junior Member
    Last Online
    3rd July 2011 @ 03:03 PM
    Join Date
    16 Jan 2006
    Posts
    16
    Threads
    8
    Credits
    0
    Thanked
    0

    Default

    Hello Bhi!
    jo source code ap ny mjhy Bate of Birth ke provide kia is k liay bhut bhut thanks.
    likin sir ma chata ho k ma aik 2 text filed bano.
    1st ma mai apna Date of Birth put kro ar 2nd field ma closing date put kro. ar next page par is ka result display ho. plz bhi is ma ap ki help chaiy thanks.

Page 3 of 8 FirstFirst 123456 ... LastLast

Similar Threads

  1. PHP MySQL Class-7
    By shakeel in forum PHP MySQL
    Replies: 97
    Last Post: 18th August 2016, 01:02 PM
  2. PHP MySQL Class-12
    By shakeel in forum PHP MySQL
    Replies: 60
    Last Post: 10th August 2016, 11:48 AM
  3. PHP MySQL Class-18
    By shakeel in forum PHP MySQL
    Replies: 71
    Last Post: 9th April 2016, 04:07 PM
  4. PHP MySQL Class-20
    By shakeel in forum PHP MySQL
    Replies: 83
    Last Post: 28th August 2015, 05:25 PM
  5. MySql first class
    By aajizUsmani in forum Courses
    Replies: 4
    Last Post: 23rd March 2014, 02:13 PM

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
  •