Page 4 of 6 FirstFirst 123456 LastLast
Results 37 to 48 of 61

Thread: PHP MySQL Class-12

  1. #37
    happytime is offline Junior Member
    Last Online
    5th October 2015 @ 11:14 PM
    Join Date
    20 Jan 2011
    Gender
    Male
    Posts
    29
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    nice well

  2. #38
    daniyalayaz is offline Senior Member+
    Last Online
    21st December 2016 @ 08:39 PM
    Join Date
    07 Feb 2011
    Age
    31
    Gender
    Male
    Posts
    49
    Threads
    0
    Credits
    1,068
    Thanked
    0

    Default

    Zabardast dost sharing k liye shukriya

  3. #39
    sfweb is offline Junior Member
    Last Online
    10th March 2011 @ 06:35 PM
    Join Date
    10 Mar 2011
    Gender
    Male
    Posts
    22
    Threads
    0
    Credits
    960
    Thanked
    0

    Default

    You welcome

    Quote shakeel said: View Post
    thanks...

  4. #40
    sfweb is offline Junior Member
    Last Online
    10th March 2011 @ 06:35 PM
    Join Date
    10 Mar 2011
    Gender
    Male
    Posts
    22
    Threads
    0
    Credits
    960
    Thanked
    0

    Default

    Nice post.

    Quote M mansoor nazir said: View Post
    thanks for this

  5. #41
    anaskhalid is offline Advance Member
    Last Online
    15th November 2022 @ 11:09 AM
    Join Date
    23 Jun 2011
    Location
    Karachi
    Gender
    Male
    Posts
    647
    Threads
    13
    Credits
    1,282
    Thanked
    27

    Default

    nice bro i m very thankful to you

  6. #42
    Huma20 is offline Member
    Last Online
    27th September 2011 @ 03:26 PM
    Join Date
    04 Aug 2011
    Location
    Islamabad
    Age
    33
    Gender
    Female
    Posts
    431
    Threads
    7
    Thanked
    12

    Default

    really very informative sharing... thank you so much shakeel bhai.........

  7. #43
    ikram62's Avatar
    ikram62 is offline Anti-spam
    Last Online
    27th February 2024 @ 03:55 PM
    Join Date
    14 Feb 2010
    Location
    Mardan
    Age
    49
    Gender
    Male
    Posts
    9,234
    Threads
    1149
    Credits
    6,059
    Thanked
    801

    Default

    wow what a sharing it is.

  8. #44
    aak999's Avatar
    aak999 is offline Senior Member+
    Last Online
    8th March 2013 @ 03:42 PM
    Join Date
    16 Dec 2010
    Age
    34
    Gender
    Male
    Posts
    375
    Threads
    17
    Credits
    945
    Thanked
    37

    Default

    Very nice sir, I like it...

  9. #45
    malikadnan0 is offline Junior Member
    Last Online
    11th November 2011 @ 01:21 AM
    Join Date
    11 Nov 2011
    Age
    35
    Gender
    Male
    Posts
    16
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    Zabardast, cha gaye hain bhai

  10. #46
    niceabi is offline Senior Member+
    Last Online
    20th May 2014 @ 11:07 AM
    Join Date
    02 Sep 2009
    Age
    40
    Posts
    31
    Threads
    3
    Credits
    841
    Thanked: 1

    Default

    Ans of Q.2 & and shakeel bhai ap ke lye jitney duaye of utni kam hai ab buhut umda sikha rahey hai Allah pak ap ko kamyab karey(Ameen)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <meta name="author" content="niceabi" />

    <title>Workshop of Q2</title>
    </head>

    <body>
    <?php
    $date=trim($_POST['date']);
    if($_POST['post']){
    if(preg_match('/^([0-2][1-9]|3[0-1])-(0[1-9]|1[0-2])-([1-2][0-9]{3})$/',$date)){
    print "Your Date Format is Valid";
    }else{
    Print "Your Date Format is Invalid";
    }
    }
    ?>
    <form method="post" action="Q2.php">
    <table width="60%" border="1">
    <tr><td>Put Your Date</td><td><input type="text" name="date"></td><td>(15-07-1984)(dd-mm-Year)</td></tr>
    <input type="hidden" value="true" name="post">
    <tr><td>&nbsp;</td><td><input type="submit" value="submit" name="submit"></td><td>&nbsp;</td></tr>
    </table>
    </form>
    </body>
    </html>

  11. #47
    niceabi is offline Senior Member+
    Last Online
    20th May 2014 @ 11:07 AM
    Join Date
    02 Sep 2009
    Age
    40
    Posts
    31
    Threads
    3
    Credits
    841
    Thanked: 1

    Default

    answer of Q.2

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <meta name="author" content="niceabi" />

    <title>Workshop Q.2</title>
    </head>
    <?php
    //creating function to escap whitespace and special characters
    function cleanStr($str){
    $cstr=trim($str);
    $cstr=htmlspecialchars($cstr);
    $cstr=addslashes($cstr);
    return $cstr;
    }
    //Gettign value of text box and puting the function
    $txt=cleanStr($_POST['bb']);
    if($_POST[post]){
    //Making the patren in array
    $patren=array(
    "/\[b\](.*?)\[\/b\]/is",
    "/\[i\](.*?)\[\/i\]/is",
    "/\[u\](.*?)\[\/u\]/is",
    );
    //making the replace patren in array
    $replace=array(
    "<b>$1</b>",
    "<i>$1</i>",
    "<u>$1</u>",
    );
    //getting the value of BBcode only [b][i][u]
    if(
    $txt=preg_replace($patren,$replace,$txt)){
    Print $txt;
    }else{
    print "Put The BB Code valid patren";
    }
    }

    ?>

    <body>
    <form method="post" action="Q3.php">
    Enter the Text With BB Code:<br />
    <textarea name="bb"></textarea>
    <input type="hidden" name="post" value="true"><br />
    <input type="submit" value="submit" name="submit">
    </form>


    </body>
    </html>

  12. #48
    studyguide is offline Junior Member
    Last Online
    22nd February 2012 @ 04:29 PM
    Join Date
    30 Dec 2011
    Gender
    Female
    Posts
    22
    Threads
    1
    Credits
    1,000
    Thanked
    0

    Default

    Happy new year 2012

Page 4 of 6 FirstFirst 123456 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-7
    By shakeel in forum PHP MySQL
    Replies: 97
    Last Post: 18th August 2016, 01:02 PM
  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
  •