Amoraboti - Program
Rashed - Uz - Zaman (Rasel)
  Home About Me Brainstorming Facebook Fan Page Contact    
  Author
I'm Rz Rasel
From Bangladesh

  Archives
April 2010
May 2010
January 2011
February 2011
January 2012
February 2012
March 2012

  Current

  Previous Posts
d
e
2
B
Php:- Check For Valid Email Address
How To Insert Unicode Values To MySQL Using Java
Multiple Checkbox Select/Deselect JavaScript And j...
Dynamically Add/Remove rows in HTML table using Ja...
Dynamically add button, textbox, input, radio elem...
Changing Form Input (Textbox) Style on Focus using...

  My Link
Islam And We
My Diary (Bangla)
My Diary (English)
My Lyrics (Bangla)
My Lyrics (English)
My Poem (Bangla)
My Poem (English)
My Story (Bangla)
My Story (English)
General Knowledge
Fun And Jokes
Lyrics (Bangla)
Lyrics (English)
Lyrics (Hindi)
Quotations
 
 
  d  
  Thursday, March 1, 2012  
 
d
 
  posted by Rz Rasel At 10:35 PM, ,  
     
  e  
  Wednesday, February 29, 2012  
 
e
 
  posted by Rz Rasel At 7:25 AM, ,  
     
  2  
  Sunday, February 26, 2012  
 
2
 
  posted by Rz Rasel At 11:29 PM, ,  
     
  B  
  Wednesday, January 4, 2012  
 
b
 
  posted by Rz Rasel At 9:35 AM, ,  
     
  Php:- Check For Valid Email Address  
  Tuesday, January 3, 2012  
 
function checkEmail($email)
{
if( preg_match( "/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $email ) > 0 )
{
return true;
}
else
{
return false;
}
}

Or
function isValidEmail( $email )
{
return preg_match( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email );
}

Or
$email = "someone@example.com";
if( eregi( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email ) )
{
echo "Valid email address.";
}
else
{
echo "Invalid email address.";
}

PHP: Validating Numeric Values and Digits
copy/* numeric, decimal passes */
function validate_numeric( $variable )
{
return is_numeric($variable);
}

/* digits only, no dots */
function is_digits( $element )
{
return !preg_match ("/[^0-9]/", $element);
}
 
  posted by Rz Rasel At 1:26 AM, ,  
     
  How To Insert Unicode Values To MySQL Using Java  
  Monday, January 2, 2012  
 
How To Insert Unicode Values To MySQL Using Java

Create a database in MySQL
I used phpMyAdmin to create my database and sometimes i used MySQL GUI tools for check my values.
MySQL GUI tools support to view Unicode values from a database
See my SQL backup file below and you can restore this backup file using phpMyAdmin.

--
-- Database: `unicode`
--
CREATE DATABASE `unicode` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `unicode`;

-- --------------------------------------------------------

-- --------------------------------------------------------

--
-- Table structure for table `unicode`
--

CREATE TABLE IF NOT EXISTS `unicode`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`job` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=20 ;

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package javaapplication1;

import java.sql.Connection;
import java.sql.DriverManager;
import javax.swing.JOptionPane;

/**
*
* @author Developer
*/
public class connection {

public Connection creatConnection () throws ClassNotFoundException
{
Connection conn=null;

try
{
Class.forName("com.mysql.jdbc.Driver").newInstance();//call jdbc driver
String url = "jdbc:mysql://localhost/unicode?useUnicode=true&characterEncoding=UTF-8";//getting url
conn = DriverManager.getConnection(url,"root","");//create connection
}

catch (Exception e)
{
// JOptionPane.showMessageDialog(null,"Error occured!.."+ e.getLocalizedMessage());
JOptionPane.showMessageDialog(null, e.getMessage(), "Ooops",JOptionPane.ERROR_MESSAGE, null);//exeption hanling
}

return conn;//return connection to all
}

}
 
  posted by Rz Rasel At 6:32 PM, ,  
     
  Multiple Checkbox Select/Deselect JavaScript And jQuery  
  Friday, February 11, 2011  
 
<HTML>

<HEAD>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<TITLE>Rz Rasel</TITLE>

<STYLE>

body, input{

font-family: Calibri, Arial;

margin:0px;

}

h1 {

margin: 0 0 0 20px;

}

html, body, #container { height: 100%; }

body > #container { height: auto; min-height: 100%; }


#header {

height:50px;

background-color:#ddd;

border-bottom:1px solid #aaa;

width:100%;

}

#footer {

font-size: 12px;

clear: both;

position: relative;

z-index: 10;

height: 3em;

margin-top: -3em;

text-align:center;

}


table {

width: 300px;

border: 1px solid;

border-collapse:collapse;

margin: 0 0 0 20px;

}

th {

background-color:#3E6DB0;

color: white;

padding: 5px;

}

</STYLE>

</HEAD>

<BODY>

<div id="container">

<div id="header">

<H1>Multiple Checkbox Select/Deselect</H1>

</div>

<p>&nbsp;</p>


<table border="1">

<tr>

<th><input type="checkbox" id="selectall"/></th>

<th>Cell phone</th>

<th>Rating</th>

</tr>

<tr>

<td align="center"><input type="checkbox" class="case" name="case" value="1"/></td>

<td>BlackBerry Bold 9650</td>

<td>2/5</td>

</tr>

<tr>

<td align="center"><input type="checkbox" class="case" name="case" value="2"/></td>

<td>Samsung Galaxy</td>

<td>3.5/5</td>

</tr>

<tr>

<td align="center"><input type="checkbox" class="case" name="case" value="3"/></td>

<td>Droid X</td>

<td>4.5/5</td>

</tr>

<tr>

<td align="center"><input type="checkbox" class="case" name="case" value="4"/></td>

<td>HTC Desire</td>

<td>3/5</td>

</tr>

<tr>

<td align="center"><input type="checkbox" class="case" name="case" value="5"/></td>

<td>Apple iPhone 4</td>

<td>5/5</td>

</tr>

</table>


</div>

<div id="footer">

Copyright &copy; Rz Rasel

</div>


</BODY>

<SCRIPT>

$(function(){


// add multiple select / deselect functionality

$("#selectall").click(function () {

$('.case').attr('checked', this.checked);

});


// if all checkbox are selected, check the selectall checkbox

// and viceversa

$(".case").click(function(){


if($(".case").length == $(".case:checked").length) {

$("#selectall").attr("checked", "checked");

} else {

$("#selectall").removeAttr("checked");

}


});

});

</SCRIPT>

</HTML>

 
  posted by Rz Rasel At 11:40 AM, ,  
     
 
  Problem In Font
Download then zip file unzip and install in your system. Or normal font file just install in your system font folder. Rz Rasel
Bangla Font
Bangla Font

  Find Me In Facebook
 
 

   aaaa
 

   aaaa
 
 
Copyright © 2010 - Amoraboti - Program. ® All right reaserved. Design and developed by:- Rz Rasl