Page 2 of 8 FirstFirst 12345 ... LastLast
Results 13 to 24 of 90

Thread: PHP MySQL Class-10

  1. #13
    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 deemi said: View Post
    Thanks Shakeel bhai
    kya App Java Script jo Web main istimal hoti hai or Form Validation k liye istimal hoti hai woh bhi sahre ker sakty hain
    Thanks deemi
    main koshish karoon ga kay is course kay baad JavaScript per kuch tutorials lekhoon linkin main wadah nahi karta.


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



  2. #14
    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 Workshop

    .
    Attached Images Attached Images  

  3. #15
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    37
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Default

    Quote shakeel said: View Post
    sure.. kal main share kar doon ga.
    Thanks alot bro...I'm waiting
    Death is not the biggest Loss in life.
    The biggest loss is when relationships die among us when we are alive!!
    (Shakespeare)

  4. #16
    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

    Thanks alot bro...I'm waiting
    main workshop oper share kar chuka hoon app check karain.

  5. #17
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    37
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Default

    Shakeel bhaie aap ka behad shukria...mai koshesh karoonga k jald az jald aapko Workshop dekha sakoon...

  6. #18
    jalal4u is offline Junior Member
    Last Online
    11th March 2009 @ 11:20 PM
    Join Date
    27 Jan 2009
    Age
    39
    Posts
    1
    Threads
    0
    Credits
    970
    Thanked
    0

    Default

    shakeel bhai mujay loveria hoa hay kia karon?

  7. #19
    Kh_Mehran is offline Senior Member+
    Last Online
    30th September 2011 @ 12:25 PM
    Join Date
    23 Oct 2007
    Location
    Uch Sharif
    Age
    36
    Gender
    Male
    Posts
    42
    Threads
    4
    Credits
    1,055
    Thanked
    0

    Default

    Shkeel BhaiGod bless you
    I am Very great Fan of You
    I think you are a angel in the shape of Human
    You are a god giftted man.
    I pray for you You are a You found more devolp in your life

  8. #20
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    37
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Default Answers of the Workshop


    ================================
    Workshop for the PHP MySQL Class No 10
    ================================


    Ans.1:- Array 2 Qisam k hai 1 Constructive Array jesmai Array k key azhod yar numericaly

    assign hoty hai. Jabky dosre type Associative Array is mai ham index ko apne marze k mutabiq

    key assign karty hai.

    =================================


    Ans.2:-

    a)Array k shoro mai element(s) ka ezafa karny k lie ARRAY_UNSHIFT() function saykarty

    hai.

    b) COUNT() or SIZEOF() used for counting elements of an array.

    c) IN_ARRAY("Argument", $Array) is used to find out the required value in array.

    d) ARRAY_POP($array) Array ka Aakhre element khatam kardeta hai.

    =================================

  9. #21
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    37
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Lightbulb


    ================================
    Workshop for the PHP MySQL Class No 10
    ================================



    ===========
    Question No.3
    ===========


    PHP Code:
    <?php

        
    //Array that contains all months names short as key and full names as values.
    $months = array(
        
    "Jan" => "January"
        
    "Feb" =>"Febuary",
        
    "Mar" =>"March"
        
    "Apr" =>"April",
        
    "May" =>"May",
        
    "Jun" =>"June",
        
    "Jul" => "July",
        
    "Aug" => "August",
        
    "Sep" => "September",
        
    "Oct" => "October",
        
    "Nov" => "November",
        
    "Dec" => "December",
        );

    foreach(
    $months as $shortname => $fullname) {

        
    //use $shortname for key and $fullname for months full name
     
    print $shortname ." = "$fullname ." <br />";
    }
    ?>
    Ghaltiaan Check karky mujhy zror inform kareen please
    Last edited by loverahiplus; 3rd February 2009 at 08:53 PM.

  10. #22
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    37
    Gender
    Male
    Posts
    1,609
    Threads
    51
    Credits
    1,311
    Thanked
    9

    Arrow Class 10, Question 4


    ===============================
    Workshop for the PHP MySQL Class No 10
    ===============================


    ==========
    Question No. 4
    ==========


    PHP Code:
    <html>
    <head>
    <title> PHP MySQL Class 10 Tutorial's Workshop ( I T M a h a l . c o . c c ) </title>
    </head>
    <body>
    <?php
        
    // Array that contains seven days a week and a wrong that is for if the days is not 

    amonst the weeks day then it will be chosen.
    $days = array(
        
    "Wrong" => "<font size=5><p align='right'><b> آپ نے انگلش میں غلط دن کا انتحاب کیا ہے 

    برائے کرم صحیح دن کا انتحاب کرکے پھر کوشش کریں۔   شکریہ </b></p><i>Sorry you have Chosen a wrong 

    day. Please chose a correct day and try again. Thankyou</i></font>"
    ,
        
    "Sunday" => "<font size=7>اتوار </font> (Etwar)"
        
    "Monday" => "<font size=7>پیر </font> (Peer)",
        
    "Tuesday" => "<font size=7>منگل </font> (Mangal)"
        
    "Wednesday" => "<font size=7>بدھ</font> (Budh)",
        
    "Thursday" => "<font size=7>جمعرات </font> (Jumarat)",
        
    "Friday" => "<font size=7>جمعۃالمبارک</font> (Jummat-ul-Mubarak)",
        
    "Saturday" => "<font size=7>ہفتہ</font> (Hafta)"
        
    );

        
    //Check the data, that is it from correct place or not.
    if($_POST['gen']) {

        
    //Creat a function that generate and print out the the given day into Urdu.
        
    function GenerateIntoUrdu() {

            
    //Use the GLOBAL command to call the $day array that is out side the 

    funcition.
            global 
    $days;
            
    $eng $_POST['eng_to_ur'];
            print 
    "<font size=5> $eng</font>  = ".$days[$eng]."<br />";
    }
        
    GenerateIntoUrdu();
    }
    ?>

    <hr />
    <form action="php-class10-4.php" method='POST'>
    <b>Select Day:</b>

    <select name="eng_to_ur">
    <option value = "Wrong" selected> ___Select a day___</option>
    <option value = "Wrong"></option>
    <?php

    //Call the array and $array_shift is used to remove the 1st element of the array and write down as 

    option
    array_shift
    ($days);
    foreach(
    $days as $eng => $urdu) {
        echo 
    "<option value =\"" .$eng"\">" .$eng."</option>";
    }
    ?>
    </select>
    <input type="hidden" name ="gen" value ="true" />
    <input type="Submit" value ="Translate into Urdu" /></center>
    </form>
    <hr />

    </body>
    </html>
    Shakeel bhai check karky mujhy zror inform kareen...

    Akhre sawal ka jawab bhe jald post karloonga insha Allah....

    Aur dosry dosto sy bhe eltemaas hai k please aap bhe check karky mujhy bataieen k s mai kia kharabhe kia achaie hai...

  11. #23
    IMUJ1's Avatar
    IMUJ1 is offline Advance Member
    Last Online
    14th September 2019 @ 11:57 AM
    Join Date
    22 Sep 2008
    Location
    Karachi
    Posts
    697
    Threads
    28
    Credits
    1,127
    Thanked
    36

    Default

    nice & vey very nice

  12. #24
    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 Excellent

    Quote loverahiplus said: View Post

    ================================
    Workshop for the PHP MySQL Class No 10
    ================================
    loverahiplus Good work.. Excellent... Well done. App waqee PHP kay dewanay hain or zaroor kamyab hoon gay.

    Comments:
    Jawab # 1: bikul drust hay well done. yahan sirf Constructive key jaga per numerically indexed arrays ayee ga. baqi jawab app ka theek hay.

    Jawab # 2: Correct
    Jawab # 3: Bulkul drust well done.

    Jawab # 4: yahan app nay program to buhat acha banaya hay likin ya hamaray sawal kay mutabiq nahi hay. agar app sawal ko dobara dakhain to us main likha hay: aik function banaen jo english din ka naam argument kay tor per la kar us ka urdu naam return karay, array ka istemal function kay andar karna hay or function main koee if,else ya switch ka istemal nahi karna. App shayad sawal ko theek tarah say sumjhay nahi hain. app is sawal ko dobara hal karnay ke koshesh karain.

    Thanks very much.

Page 2 of 8 FirstFirst 12345 ... 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
  •