Page 2 of 9 FirstFirst 12345 ... LastLast
Results 13 to 24 of 98

Thread: PHP MySQL Class-7

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

    Default

    bohat hi umda mazza agya

  2. #14
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    31
    Gender
    Male
    Posts
    1,608
    Threads
    51
    Credits
    477
    Thanked
    9

    Lightbulb Workshop RESULT

    Shakeel Bro mere koshesh ka aik Kamzoor sa result aapky samny hai pls zror is par comments deen jo khaamyaan hai unko bhe point out kareen taky aienda koshesh karoo k os sy ejtenaab karoon

    HTML Code:
    <html>
    <head>
    <title>PHP Class 7 - Workshop ( I T M a h a l . c o . c c )
    </title>
    </head>
    
    <body>
    <?php 
    	if($_POST['post']){
    	$num = $_POST['OddEven'];
    	$result = $num%2;
    	switch ($result){
    		case 0: echo "You have entered an <h2>EVEN</h2> number.".$num. 
    
    "<br / >";
    		break;
    		case 1:  echo "You entered an <h2>ODD</h2> number.". $num ."<br / 
    
    >";
    		break;
    		default: echo "Sorry you've enter correct number. . .";
    		}
    	}
    
    	if($_POST['tables']){
    	$num = $_POST['table'];
    		if($num <= 2 || $num >=20){
    			echo "<h1>Error:</h1><b>Please enter a number that is 
    
    greater than <i>2</i> and/or is less than <i>20</i>.</b><br /><br /><br />";
    		}else{
    			echo "<center><h1>Table of " . $num . "</h1></center>";
    			for ($i = 1; $i<=100; $i++){
    				echo  ("<center>".$num  . " x " .$i . " = 
    
    ".$num*$i."<br /></center>");
    			}
    		}
    	}
    
    ?>
    <b>__________________________________________________________________</b>
    <form action="php-class7.php" method='POST'>
    <b>Enter number to know either it is Even or Odd:</b>
    	<input type="text" name=OddEven value ="Type a number here" /><BR /><BR />
    	<input type="hidden" name ="post" value ="true" />
    	<center><input type="reset" value ="Reset" />
    	<input type="Submit" value ="Is it EVEN or ODD ?" /></center>
    </form>
    <b>__________________________________________________________________</b>
    <form action="php-class7.php" method='POST'>
    <b>Enter number between 2 & 20 to show its table:</b>
    	<input type="text" name='table' value ="Type a number here" /><BR /><BR />
    	<input type="hidden" name ="tables" value ="true" />
    	<center><input type="reset" value ="Reset" />
    	<input type="Submit" value ="Show Tables" /></center>
    </form>
    <b>__________________________________________________________________</b>
    </body>
    </html>
    
    Death is not the biggest Loss in life.
    The biggest loss is when relationships die among us when we are alive!!
    (Shakespeare)

  3. #15
    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
    278
    Thanked
    3

    Default Excellent

    Quote loverahiplus said: View Post
    Shakeel Bro mere koshesh ka aik Kamzoor sa result aapky samny hai pls zror is par comments deen jo khaamyaan hai unko bhe point out kareen taky aienda koshesh karoo k os sy ejtenaab karoon
    loverahiplus Excellent.... , Great Work.. main app kay kaam say buhat khoush hoa hoon. or app main aik acha developer dikh raha hoon. so keep it up..

    1: hamisha apany code main comments bhi dain, jis say bad main apko ya dosray sathi ko code read karnay main masla nahi ho ga.
    2: her line ko alag line per lekhain, jasay kay agar app is tarah lekthay to ziada behtar hota:

    PHP Code:
     switch ($result) {
                    
    // if the number is even
            
    case 0:
                    echo 
    "You have entered an <h2>EVEN</h2> number.".$num"<br / >";
            break;
                   
    // if the number is odd
            
    case 1:
                    echo 
    "You entered an <h2>ODD</h2> number."$num ."<br / >";
            break;

            default:
                    echo 
    "Sorry you've enter correct number. . .";
        } 
    khair ya koee itna bara masla nahi hay or waqt kay sath sath app ko khudh hi samaj a jay ga, wo kia kehtay hain:
    khuda jub hosan dita hay nazakat aa hi jati hay.
    baqi app ke logic zabardast hay.
    Last edited by shakeel; 19th January 2009 at 02:26 PM.


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



  4. #16
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    31
    Gender
    Male
    Posts
    1,608
    Threads
    51
    Credits
    477
    Thanked
    9

    Default

    Quote shakeel said: View Post
    loverahiplus Excellent.... , Great Work.. main app kay kaam say buhat khoush hoa hoon. or app main aik acha developer dikh raha hoon. so keep it up..

    1: hamisha apany code main comments bhi dain, jis say bad main apko ya dosray sathi ko code read karnay main masla nahi ho ga.
    2: her line ko alag line per lekhain, jasay kay agar app is tarah lekthay to ziada behtar hota:

    PHP Code:
     switch ($result) {
                    
    // if the number is even
            
    case 0:
                    echo 
    "You have entered an <h2>EVEN</h2> number.".$num"<br / >";
            break;
                   
    // if the number is odd
            
    case 1:
                    echo 
    "You entered an <h2>ODD</h2> number."$num ."<br / >";
            break;

            default:
                    echo 
    "Sorry you've enter correct number. . .";
        } 
    khair ya koee itna bara masla nahi hay or waqt kay sath sath app ko khudh hi samaj a jay ga, wo kia kehtay hain:
    khuda jub hosan dita hay nazakat aa hi jati hay.
    baqi app ke logic zabardast hay.
    Shakeel bhaie aapny mere etne tareef k hai aapke barre karam nawaze mai tu s laieq nahi tha agar is qabel howa hoon tu aik achy teacher k waja say joky he say kuch seekha....dosre lines ko tu mai nay s lie akatty lekha k jaga k bachat ho aur scroll kie bagheer nazar asaky aur baat rahe comments k tu insha Allah next time ye yaad raheega...

    Aik request hai aap say har lesson k end par workshop/homework dia kareen s say hamare prectice howa kareege...

    Thanks alot

  5. #17
    ferozabzu is offline Senior Member+
    Last Online
    4th February 2010 @ 02:21 PM
    Join Date
    23 Dec 2008
    Location
    Rahim yar khan
    Age
    29
    Posts
    39
    Threads
    1
    Credits
    257
    Thanked
    0

    Default

    thanks yar bhut aacha kaam kar rahay ho next class ka wait kar rha hon

  6. #18
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    31
    Gender
    Male
    Posts
    1,608
    Threads
    51
    Credits
    477
    Thanked
    9

    Default

    Quote ferozabzu said: View Post
    thanks yar bhut aacha kaam kar rahay ho next class ka wait kar rha hon
    Mere bhaie agla Tutorial tu kab k aagia hai...

  7. #19
    Join Date
    23 Oct 2006
    Location
    Lalamusa
    Age
    32
    Posts
    7,054
    Threads
    198
    Credits
    0
    Thanked
    9

    Default

    Excellent work Shakeel bhai

  8. #20
    kiqbal is offline Junior Member
    Last Online
    3rd May 2009 @ 09:26 PM
    Join Date
    23 Jan 2009
    Posts
    9
    Threads
    0
    Credits
    280
    Thanked
    0

    Default ver good

    Quote M mansoor nazir said: View Post
    Thanks for continue this V.V.V.V.V.V.Important Tutorials
    very thanks

  9. #21
    Join Date
    24 Jan 2009
    Location
    Karachi
    Age
    30
    Posts
    6
    Threads
    0
    Credits
    130
    Thanked
    0

    Default

    yaar php bananay k liye website khon se open karay pls reply me ?

  10. #22
    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
    278
    Thanked
    3

    Default

    Quote Sager009 said: View Post
    yaar php bananay k liye website khon se open karay pls reply me ?
    Dear Brother
    I didn't understand your question. Please provide some more detail so that I might be able to answer you.
    Thanks

  11. #23
    deemi is offline Senior Member+
    Last Online
    25th June 2014 @ 12:09 PM
    Join Date
    16 Sep 2008
    Location
    Gujranwala
    Age
    35
    Posts
    375
    Threads
    68
    Credits
    269
    Thanked
    49

    Unhappy I am in a Big Problem

    aoa kya haal hai shakeel bhai aap ka app ky thread sy madad to kafi hoo rahi hai mger mujhy aik problem hai or woh yeh k main jub bhi dreamweaver mian php ka code likh ker .PHP ky sath save kerta hoon ya .HTML k sath save kerta hoon woh mujhy php ka result nhi deta main nay aap ki classes say bhi code dykh ker likha mager mushkil asaan nhi hoo rahi so plzzzz shakeel bhai meri madad keryn main bohat paryshan hoon.

  12. #24
    Join Date
    14 Feb 2009
    Location
    Faisalabad
    Posts
    205
    Threads
    23
    Thanked
    2

    Default


Page 2 of 9 FirstFirst 12345 ... LastLast

Similar Threads

  1. PHP MySQL Class-3
    By shakeel in forum PHP MySQL
    Replies: 169
    Last Post: 9th September 2016, 10:10 AM
  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
  •