Pakistani Urdu Forum for Free IT Education, ITDunya.com  


Home UrduPad EMail FAQ ITD Mobile
Go Back   Pakistani Urdu Forum for Free IT Education, ITDunya.com > IT ki Dunya > Courses > PHP MySQL
Forgot Password? Join Us!

PHP MySQL shakeel

PHP MySQL Class-12
Reply
 
LinkBack Thread Tools Display Modes
  #37  
Old 22nd January 2011, 12:41 PM
Junior Member
 
Last Online: 11th March 2013 07:31 PM
Join Date: 20 Jan 2011
Gender: Male
Posts: 28
Started threads: 0 Started threads
Thanks: 0
Thanked 0 Times in 0 Posts
Default

nice well
Reply With Quote
  #38  
Old 8th February 2011, 12:07 AM
Member
 
Last Online: 27th July 2011 02:20 AM
Join Date: 07 Feb 2011
Age: 20
Gender: Male
Posts: 49
Started threads: 0 Started threads
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Zabardast dost sharing k liye shukriya
Reply With Quote
  #39  
Old 10th March 2011, 03:37 PM
Junior Member
 
Last Online: 10th March 2011 05:35 PM
Join Date: 10 Mar 2011
Gender: Male
Posts: 22
Started threads: 0 Started threads
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You welcome

Quote:
shakeel said: View Post
thanks...
Reply With Quote
  #40  
Old 10th March 2011, 03:53 PM
Junior Member
 
Last Online: 10th March 2011 05:35 PM
Join Date: 10 Mar 2011
Gender: Male
Posts: 22
Started threads: 0 Started threads
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nice post.

Quote:
M mansoor nazir said: View Post
thanks for this
Reply With Quote
  #41  
Old 13th July 2011, 01:04 AM
Advance Member
 
Last Online: 2nd May 2013 11:47 PM
Join Date: 23 Jun 2011
Location: Karachi
Age: 24
Gender: Male
Posts: 636
Started threads: 13 Started threads
Thanks: 21
Thanked 28 Times in 24 Posts
Default

nice bro i m very thankful to you
Reply With Quote
  #42  
Old 17th August 2011, 10:07 AM
Banned
 
Last Online: 27th September 2011 03:26 PM
Join Date: 04 Aug 2011
Location: Islamabad
Age: 22
Gender: Female
Posts: 431
Started threads: 7 Started threads
Thanks: 0
Thanked 12 Times in 12 Posts
Default

really very informative sharing... thank you so much shakeel bhai.........
Reply With Quote
  #43  
Old 25th August 2011, 05:30 PM
ikram62's Avatar
V.I.P
 
Last Online: Yesterday 11:08 AM
Join Date: 14 Feb 2010
Location: Mardan
Age: 38
Gender: Male
Posts: 6,369
Started threads: 803 Started threads
Thanks: 31
Thanked 456 Times in 311 Posts
Default

wow what a sharing it is.
Reply With Quote
  #44  
Old 7th October 2011, 12:08 AM
aak999's Avatar
Senior Member
 
Last Online: 8th March 2013 02:42 PM
Join Date: 16 Dec 2010
Age: 23
Gender: Male
Posts: 376
Started threads: 17 Started threads
Thanks: 13
Thanked 37 Times in 16 Posts
Default

Very nice sir, I like it...
Reply With Quote
  #45  
Old 11th November 2011, 12:19 AM
Junior Member
 
Last Online: 11th November 2011 12:21 AM
Join Date: 10 Nov 2011
Age: 25
Gender: Male
Posts: 16
Started threads: 0 Started threads
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Zabardast, cha gaye hain bhai
Reply With Quote
  #46  
Old 15th December 2011, 06:04 PM
Member
 
Last Online: 8th July 2012 06:47 PM
Join Date: 02 Sep 2009
Age: 29
Posts: 31
Started threads: 3 Started threads
Thanks: 0
Thanked 1 Time in 1 Post
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)
Quote:
<!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>
Reply With Quote
  #47  
Old 24th December 2011, 06:17 PM
Member
 
Last Online: 8th July 2012 06:47 PM
Join Date: 02 Sep 2009
Age: 29
Posts: 31
Started threads: 3 Started threads
Thanks: 0
Thanked 1 Time in 1 Post
Default

answer of Q.2

Quote:
<!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>
Reply With Quote
  #48  
Old 30th December 2011, 06:50 PM
Junior Member
 
Last Online: 22nd February 2012 03:29 PM
Join Date: 30 Dec 2011
Gender: Female
Posts: 22
Started threads: 1 Started threads
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Happy new year 2012
Reply With Quote
Reply

Bookmarks

Advertisement



(View-All Members who have read this thread in the last 15 days : 5
adilnesmith, imran232, KANDEEL, NAVEED QURESHI, serviceproz
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP MySQL Class-7 shakeel PHP MySQL 82 18th April 2013 03:34 PM
PHP MySQL Class-3 shakeel PHP MySQL 141 18th April 2013 03:31 PM
PHP MySQL Class-4 shakeel PHP MySQL 93 18th April 2013 03:30 PM
PHP MySQL Class-2 shakeel PHP MySQL 206 18th April 2013 03:28 PM
PHP MySQL Class-14 shakeel PHP MySQL 51 29th March 2013 09:53 PM


All times are GMT +5. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.7
Copyright © 2005 - 2013, ITDunya All rights reserved, No Portion May be Reproduced Without Written Permission from ITD Management.

Search Engine Optimization by vBSEO ©2011, Crawlability, Inc.