Friday, November 30, 2012

To Find a Range of Week for a Date


This is the function for finding a the week of the provided date.

Week of the given date exists.That also separated into month wise weeks for generating weekly reports.

function rangeWeek($datestr) {
    date_default_timezone_set(date_default_timezone_get());
    $date = strtotime($datestr);

    $weekstart = strtotime('last monday', $date);   //Week Start and End date
    $weekend = strtotime('sunday', $date);
    if(date('l',$date) == 'Monday'){                //To find Current day is Monday or Sunday
        $weekstart = $date;
        $weekend = strtotime('sunday', $date);
    }
    //Month Start and End date
    $monthstart =  strtotime("-" . (date("d", $date)-1) . " days", $date);
    $monthend = strtotime("+" . (date("t", $monthstart)-1) . " days", $monthstart);
    $monthstart_minusone = strtotime(date('d-m-Y',$monthstart). ' -1 day');
    $monthend_plusone = strtotime(date('d-m-Y',$monthend). ' + 1 day');

    if($weekend > $monthend){
        $res['week1_starts'] = date('d-m-Y',$weekstart);
        $res['week1_ends'] = date('d-m-Y',$monthend);
        $res['week2_starts'] = date('d-m-Y', $monthend_plusone);
        $res['week2_ends'] = date('d-m-Y',$weekend);
    }else if($weekstart < $monthstart){
        $res['week1_starts'] = date('d-m-Y',$weekstart);
        $res['week1_ends'] = date('d-m-Y',$monthstart_minusone);
        $res['week2_starts'] = date('d-m-Y',$monthstart);
        $res['week2_ends'] = date('d-m-Y',$weekend);
    }else{
        $res['week_starts'] = date('d-m-Y',$weekstart);
        $res['week_ends'] = date('d-m-Y',$weekend);
    }
    return $res;
}
ep(rangeWeek(date('d-m-Y')));

Friday, August 17, 2012

Inner Join and Outer Join


Inner join:
An inner join using either of the equivalent queries gives the intersection of the two tables, i.e. the two rows they have in common.


Examples
Suppose you have two Tables, with a single column each, and data as follows:
A    B
-    -
1    3
2    4
3    5
4    6
select * from a INNER JOIN b on a.a = b.b;
a | b
--+--
3 | 3
4 | 4
Left outer join:
A left outer join will give all rows in A, plus any common rows in B.
select * from a LEFT OUTER JOIN b on a.a = b.b;
a |  b  
--+-----
1 | null
2 | null
3 |    3
4 |    4
Full outer join:
A full outer join will give you the union of A and B, i.e. All the rows 
in A and all the rows in B.  If something in A doesn't have a 
corresponding datum in B, then the B portion is null, and vice versa.
select * from a FULL OUTER JOIN b on a.a = b.b;
 a   |  b  
-----+-----
   1 | null
   2 | null
   3 |    3
   4 |    4
null |    6
null |    5

Tuesday, August 14, 2012

Cookies & Sessions

Cookies

Cookies can be set to a long lifespan, which means that data stored in a cookie can be stored for months if not years. Cookies, having their data stored on the client, work smoothly when you have a cluster of web servers, whereas sessions are stored on the server, meaning in one of your web servers handles the first request, the other web servers in your cluster will not have the stored information.

Using Cookies:
bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]]);

Example for Cookies:
if (!isset($_COOKIE['Ordering'])) {
        
setcookie("Ordering", $_POST['ChangeOrdering'], time() + 31536000);
    }


Usage of Cookies:
echo $_COOKIE["Ordering"];

Destroy Cookies:
setcookie ("Ordering"""time() - 3600);

Sessions

Sessions are stored on the server, which means clients do not have access to the information you store about them - this is particularly important if you store shopping baskets or other information you do not want you visitors to be able to edit by hand by hacking their cookies. Session data, being stored on your server, does not need to be transmitted with each page; clients just need to send an ID and the data is loaded from the local file. Finally, sessions can be any size you want because they are held on your server, whereas many web browsers have a limit on how big cookies can be to stop rogue web sites chewing up gigabytes of data with meaningless cookie information.

To start a Session:
session_start();

Reading a session data:
$_SESSION['foo'] = 'bar';
print
 $_SESSION['foo'];

Removing a session data:
unset($_SESSION['foo']);

Ending a session:
session_destroy();

Checking a session data:
if (isset($_SESSION['FirstName'])) {
        
/// your code here
    
}

Thursday, April 19, 2012

Converting Number to Indian Currency Number


 Converting Number to Indian Currency Number:

 $num = 1000;
 $converted_number = formatIndianStyle($num);
 print $converted_number;


//Ans: 1,000.00


 function formatIndianStyle($num){
     $pos = strpos((string)$num, ".");
     if ($pos === false) {
        $decimalpart="00";
     }
     if (!($pos === false)) {
        $decimalpart= substr($num, $pos+1, 2); $num = substr($num,0,$pos);
     }


     if(strlen($num)> 3 & strlen($num) <= 12){
         $last3digits = substr($num, -3 );
         $numexceptlastdigits = substr($num, 0, -3 );
         $formatted = makeComma($numexceptlastdigits);
         $stringtoreturn = $formatted.",".$last3digits.".".$decimalpart ;
     }elseif(strlen($num)<=3){
        $stringtoreturn = $num.".".$decimalpart ;
     }elseif(strlen($num)>12){
        $stringtoreturn = number_format($num, 2);
     }


     if(substr($stringtoreturn,0,2)=="-,"){
        $stringtoreturn = "-".substr($stringtoreturn,2 );
     }


     return $stringtoreturn;
}


     function makeComma($input){
     if(strlen($input)<= 2)
     { return $input; }
     $length=substr($input,0,strlen($input)-2);
     $formatted_input = makeComma($length).",".substr($input,-2);
     return $formatted_input;
 }

Monday, April 16, 2012

PDF Creation

PDF Creation:


First we need to download the DOMPDF [Html to Pdf converter] from [http://code.google.com/p/dompdf/].Then keep that folder inside your pdf module.



function pdf_creation_menu(){
  $items['pdf_creation'] = array(
    'page callback' => 'pdf_creation',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
);
  
  return $items;
}


function  pdf_creation () {
//You can add your own HTML or you can print your DB details as a HTML
//You can theme it by default drupal theming and pass that value to this $content
// Ex: $content = theme('create_pdf', $value);
// In this create_pdf tpl you can theme with your own styles,but you need to give the styles inside the same file itself. Like <style>your styles</style> at the top of the tpl file.



$content = '<html><body>'.
  '<p>Put your html here, or generate it with your favourite '.
  'templating system.</p>'.
  '</body></html>'; 


  require_once("dompdf/dompdf_config.inc.php");  //Path to identify the dompdf converter.
  $dompdf = new DOMPDF();
  $dompdf->load_html($content);
  $dompdf->set_paper('letter', 'portrait');
  $dompdf->render();


  $dompdf->stream("pdf_name.pdf");


  exit(0);
}


Finally give this link [pdf_creation] as your PDF downloader link.

Thursday, March 1, 2012

Storing another language word for the English word and retrieving

 Storing another language word for the English word and retrieving anywhere in our module or tpl :

This function to create the form fields for entering the english and spanish words and also for displaying it in table format.
function get_englishtospanish(){
$edit_option = arg(3);
$disalbled = '';
  if(arg(4)=='edit'){
  $eng_spa_value = db_fetch_object(db_query("SELECT * FROM {tbl_eng_span} WHERE s_id = %d ", arg(3)));
    $english = $eng_spa_value->english;
    $spanish=  $eng_spa_value->spanish;
    //$disalbled = TRUE;
  }else if(arg(4)=='delete'){
      db_query("DELETE FROM {tbl_eng_span} WHERE s_id = %d", arg(3));
      drupal_goto('admin/settings/eng2span');
  }
  $form['english'] = array(
    '#type' => 'textfield',
    '#title' =>  t('English'),
    '#description' => t('Enter the English word/sentence'),
    '#default_value' => ($english ? $english : ''),
      '#disabled' => $disalbled,
      '#required'=> TRUE,
  );

  $form['spanish'] = array(
    '#type' => 'textfield',
    '#title' =>  t('Spanish'),
    '#description' => t('Enter the Spanish word/sentence'),
    '#default_value' => ($spanish? $spanish: ''),
      '#required'=> TRUE,
  );
 
  $form['save'] = array('#type' => 'submit', '#value' => (arg(3)? 'Update':'Save'));

    $headers = array('S.No', 'English Words/Sentence', 'Spanish Words/Sentence', 'Action');
        $eng_spa_details = pager_query('SELECT * FROM {tbl_eng_span}',25);
        $options['attributes']['onclick'] = "return confirm('Are you sure you want to delete?')";
        while ($eng_spa_obj = db_fetch_object($eng_spa_details)) {
            $eng_spa_id = $eng_spa_obj->s_id;
            $incre++;
            $eng_spa_eng = $eng_spa_obj->english;
            $eng_spa_spa= $eng_spa_obj->spanish;
            $rows[] = array($incre,
                $eng_spa_eng,
                $eng_spa_brz,
                l(('Edit'), 'admin/settings/eng2spa/' . $eng_brz_id .'/edit').'/'.l(('Delete'), 'admin/settings/eng2spa/' . $eng_spa_id.'/delete',$options)
            );
        }
        $output .= theme('table', $headers, $rows);
        $output .= theme('pager');
        $form['result'] = array('#value' => $output);

  return $form;
}
//for creating tables to store these values,you need to create the table using install file,
[[[
$schema['tbl_eng_span']= array(
           'description' => t('Account Information Table'),

'fields' => array(
           's_id' => array(
           'type' => 'serial',
           'description' => t('Sid'),
           'length' => 250,
           'not null' => TRUE
),
           'english' => array(
           'type' => 'varchar',
           'description' => t('English'),
           'length' => 250,
           'not null' => TRUE
),
           'spanish' => array(
           'type' => 'varchar',
           'description' => t('Spanish'),
           'length' => 250,
           'not null' => TRUE
),         

),
     'primary key' => array('s_id')
);

]]]





//Submitting the values for storing,editing,updating and deleting.
function get_englishtospanish_submit($form, &$form_state) {
$edit_option = arg(3);
$eng_spa_obj = db_fetch_object(db_query("SELECT * FROM {tbl_eng_span}"));
  $result_array = array_slice($form_state['values'],0,2);
    if($edit_option != ''){
      $sid = array("s_id" => $edit_option);
      $result_array = array_merge($result_array, $sid);
      drupal_write_record('tbl_eng_span',$result_array,'s_id');
      drupal_set_message(t("Data's Updated"));
      drupal_goto('admin/settings/eng2spa');
   }else if(($form_state['values']['english'])== ($eng_spa_obj->english)){
          drupal_set_message("Word/Sentence <b><i>" . $eng_spa_obj->english ."</i></b> Already Exists",'error');
      }else{
         drupal_write_record('tbl_eng_span',$result_array);
         drupal_set_message(t("Data's Inserted"));
  }
}

This is the main function,here we will pass the english word,it will return our saved another language word:Ex.Spanish. We will use "http://translate.google.com/" to translate the english word to Spanish.
function spanish_t($eng){  
    $brazil_word = db_fetch_object(db_query("SELECT spanish FROM {tbl_eng_span} WHERE english = '%s'", $eng));
    $
spanish _word = $spanish _word->spanish ;
    if($
spanish _word == ''){
        $
spanish _word = $eng;
    }
    return $
spanish _word;
}


Final Look of this page,

Friday, February 24, 2012

map_month() - Predefined Drupal Function

map_month() - Predefined Drupal Function

To get the month name using the numbers of the month.
$val = map_month(3);

echo $val;

Output:
Mar

expand_date - Drupal Pre Defined Function

expand_date - Drupal Pre Defined Function

Assign the expand_date() function value to a variable and print that variable.
$exp_date = expand_date();
print "<pre>" ;
print_r($exp_date);
print "</pre>" ;

You will get all those details for this function,you can use it anywhere over the module.
Array
(
    [#value] => Array
        (
            [day] => 24 //(current day)
            [month] => 2 //(current month)
            [year] => 2012 //(current year)
        )

    [#tree] => 1
    [month] => Array  //(Months List)
        (
            [#type] => select
            [#value] => 2
            [#attributes] => 
            [#options] => Array
                (
                    [1] => Jan
                    [2] => Feb
                    [3] => Mar
                    [4] => Apr
                    [5] => May
                    [6] => Jun
                    [7] => Jul
                    [8] => Aug
                    [9] => Sep
                    [10] => Oct
                    [11] => Nov
                    [12] => Dec
                )

        )

    [day] => Array //(Days List)
        (
            [#type] => select
            [#value] => 24
            [#attributes] => 
            [#options] => Array
                (
                    [1] => 1
                    [2] => 2
                    [3] => 3
                    [4] => 4
                    [5] => 5
                    [6] => 6
                    [7] => 7
                    [8] => 8
                    [9] => 9
                    [10] => 10
                    [11] => 11
                    [12] => 12
                    [13] => 13
                    [14] => 14
                    [15] => 15
                    [16] => 16
                    [17] => 17
                    [18] => 18
                    [19] => 19
                    [20] => 20
                    [21] => 21
                    [22] => 22
                    [23] => 23
                    [24] => 24
                    [25] => 25
                    [26] => 26
                    [27] => 27
                    [28] => 28
                    [29] => 29
                    [30] => 30
                    [31] => 31
                )

        )

    [year] => Array //(Year List from 1900 to 2050)
        (
            [#type] => select
            [#value] => 2012
            [#attributes] => 
            [#options] => Array
                (
                    [1900] => 1900
                    [1901] => 1901
                    [1902] => 1902
                    [1903] => 1903
                    [1904] => 1904
                    [1905] => 1905
                    [1906] => 1906
                    [1907] => 1907
                    [1908] => 1908
                    [1909] => 1909
                    [1910] => 1910
                    [1911] => 1911
                    [1912] => 1912
                    [1913] => 1913
                    [1914] => 1914
                    [1915] => 1915
                    [1916] => 1916
                    [1917] => 1917
                    [1918] => 1918
                    [1919] => 1919
                    [1920] => 1920
                    [1921] => 1921
                    [1922] => 1922
                    [1923] => 1923
                    [1924] => 1924
                    [1925] => 1925
                    [1926] => 1926
                    [1927] => 1927
                    [1928] => 1928
                    [1929] => 1929
                    [1930] => 1930
                    [1931] => 1931
                    [1932] => 1932
                    [1933] => 1933
                    [1934] => 1934
                    [1935] => 1935
                    [1936] => 1936
                    [1937] => 1937
                    [1938] => 1938
                    [1939] => 1939
                    [1940] => 1940
                    [1941] => 1941
                    [1942] => 1942
                    [1943] => 1943
                    [1944] => 1944
                    [1945] => 1945
                    [1946] => 1946
                    [1947] => 1947
                    [1948] => 1948
                    [1949] => 1949
                    [1950] => 1950
                    [1951] => 1951
                    [1952] => 1952
                    [1953] => 1953
                    [1954] => 1954
                    [1955] => 1955
                    [1956] => 1956
                    [1957] => 1957
                    [1958] => 1958
                    [1959] => 1959
                    [1960] => 1960
                    [1961] => 1961
                    [1962] => 1962
                    [1963] => 1963
                    [1964] => 1964
                    [1965] => 1965
                    [1966] => 1966
                    [1967] => 1967
                    [1968] => 1968
                    [1969] => 1969
                    [1970] => 1970
                    [1971] => 1971
                    [1972] => 1972
                    [1973] => 1973
                    [1974] => 1974
                    [1975] => 1975
                    [1976] => 1976
                    [1977] => 1977
                    [1978] => 1978
                    [1979] => 1979
                    [1980] => 1980
                    [1981] => 1981
                    [1982] => 1982
                    [1983] => 1983
                    [1984] => 1984
                    [1985] => 1985
                    [1986] => 1986
                    [1987] => 1987
                    [1988] => 1988
                    [1989] => 1989
                    [1990] => 1990
                    [1991] => 1991
                    [1992] => 1992
                    [1993] => 1993
                    [1994] => 1994
                    [1995] => 1995
                    [1996] => 1996
                    [1997] => 1997
                    [1998] => 1998
                    [1999] => 1999
                    [2000] => 2000
                    [2001] => 2001
                    [2002] => 2002
                    [2003] => 2003
                    [2004] => 2004
                    [2005] => 2005
                    [2006] => 2006
                    [2007] => 2007
                    [2008] => 2008
                    [2009] => 2009
                    [2010] => 2010
                    [2011] => 2011
                    [2012] => 2012
                    [2013] => 2013
                    [2014] => 2014
                    [2015] => 2015
                    [2016] => 2016
                    [2017] => 2017
                    [2018] => 2018
                    [2019] => 2019
                    [2020] => 2020
                    [2021] => 2021
                    [2022] => 2022
                    [2023] => 2023
                    [2024] => 2024
                    [2025] => 2025
                    [2026] => 2026
                    [2027] => 2027
                    [2028] => 2028
                    [2029] => 2029
                    [2030] => 2030
                    [2031] => 2031
                    [2032] => 2032
                    [2033] => 2033
                    [2034] => 2034
                    [2035] => 2035
                    [2036] => 2036
                    [2037] => 2037
                    [2038] => 2038
                    [2039] => 2039
                    [2040] => 2040
                    [2041] => 2041
                    [2042] => 2042
                    [2043] => 2043
                    [2044] => 2044
                    [2045] => 2045
                    [2046] => 2046
                    [2047] => 2047
                    [2048] => 2048
                    [2049] => 2049
                    [2050] => 2050
                )

        )

)

Tuesday, February 21, 2012

Object Oriented Programming PHP

Object Oriented Programming PHP

Object PHP Definition

Real-world objects share two characteristics: They all have state and behavior. Dogs have state (name, color, breed, hungry) and behavior (barking, fetching, wagging tail). Bicycles also have state (current gear, current pedal cadence, current speed) and behavior (changing gear, changing pedal cadence, applying brakes). Identifying the state and behavior for real-world objects is a great way to begin thinking in terms of object-oriented programming.
Adopting object-oriented techniques when developing your PHP scripts and applications can immediately inject greater flexibility and easier maintenance into your development environment. Programs become easier to extend, or debug, and sharing code with other developers on your team (should you have one) becomes simpler.

Objects and Classes

Objects in PHP cannot be declared literally; they must be instantiated from a class.

There’s No Substitute for Class

To define a class in PHP, we write the following code:
class Bicycle
{
  var $attribute1;
  var $attribute2;
  function method1()
  {
    // Code here
    return $something;
  }
 
  function method2()
  {
    // Code here
  }
}

new keyword:

To a new an instance of our class, we need to use the new keyword. To create a new object from the class definition we use the new keyword.
$myBicycle = new Bicycle();
This creates an object. An object is, in effect, a new variable with a user-defined data-type (the class). This basically means we could instantiate our class over and over into as many different objects as we so desire.
$myBicycle2 = new Bicycle();
$myBicycle3 = new Bicycle();
$myBicycle4 = new Bicycle();

Any New Members?

To access the various attributes and methods (members) of our object, we can use the namespace separator -> (sometimes called the arrow operator; although it’s not really an operator). When you are accessing a variable in PHP, the part of code after the $ is known as the namespace. When you are accessing attributes and methods that are members of an object, you need to extend that namespace to include the name of your object. To do this, you reference attributes and methods like so:
// Assigning Value to Attributes
$myBicycle->attribute1 = 'Red';
$myBicycle->attribute2 = 'Hero';
 
// Calling Methods
$returned = $myBicycle->method1();
$myBicycle->method2();
This idea of namespace and namespace separators is very similar to a standard directory structure – the slashes or backslashes becoming the ->separator. Since we can have objects within objects, we can also extend this further. For example, if our $myBicycle object was a member of another object called $anotherObject, we could reference the members of $myBicycle like so:
// Assigning Value to Attributes
$anotherObject->myBicycle->attribute1 = 'Red';
$anotherObject->myBicycle->attribute2 = 'Hero';
 
// Methods
$returned = $anotherObject->myBicycle->method1();
$anotherObject->myBicycle->method2();
Notice that the $ appears only once before the namespace; this is because a variable name in PHP can only ever have a single dollar sign. If we were to place another $ anywhere in our namespace, we’d be telling PHP we were using variable variables. I don’t really want to go too far off topic here, so have a look at the PHP documentation for more information about variable variables.

The $this Pseudo-Variable

When writing code within a class definition, you’re never going to know the name of the object to which it belongs; this is because the object hasn’t even been instantiated at this point. In order to access the attributes and methods of your class from within the class itself, we will need to use the $this pseudo-variable:
class Bicycle
{
  var $attribute1;
  function method1()
  {
    return $this->attribute1;
  }
}
$this can also be thought of as ‘my own’ or ‘current object’. In our example, we’re returning the value of $attribute1 within the ‘current object’.
Inheritance

Object-oriented programming allows classes to inherit commonly used state and behavior from other classes. In this example, Bicycle now becomes the superclass of MountainBike, RoadBike, and TandemBike. Inheritence is the ability of php to extend classes (child classes) that inherit the charactaristics of the parent class.

<?php

class RoadBike extends Bicycle {
private $num_spoke;

private $handlebars;

}
 

Constructor

Constructors are functions in a class that are automatically called when you create a new instance of a class with new. A function becomes a constructor, when it has the same name as the class. If a class has no constructor, the constructor of the base class will be called, if it exists.
The constructor of a class is a special method that is run upon instantiation. It’s main purpose is to set-up the attributes of a class and to establish the class invariant – to basically make sure that the attributes of the class conform to the class interface. A properly written constructor should never contain any functionality that could fail, thus leaving the object in an invalid state.
<?php
class A
{
    function A()
    {
        echo "I am the constructor of A.<br />\n";
    }

    function B()
    {
        echo "I am a regular function named B in class A.<br />\n";
        echo "I am not a constructor in A.<br />\n";
    }
}

class B extends A
{
}

// This will call B() as a constructor
$b = new B;
?>

Destructor

A destructor function is run when an object is destroyed – its role is to clean up and to free the resources which were used by the object during run-time, and to unlink the object from other objects or resources.
<?php
class MyExampleClass {
function __construct() {
print ”In constructor\n”;
$this->name = ”MyExampleClass”;
}
function __destruct() {
print ”Destroying ” . $this->name . ”\n”;
}
}
$myObj = new MyExampleClass ();
?>
PHP 5 introduces a destructor concept similar to that of other object-oriented languages, such as C++. The destructor method will be called as soon as all references to a particular object are removed or when the object is explicitly destroyed or in any order in shutdown

Magic Methods

The function names __construct__destruct__call__callStatic__get__set__isset__unset__sleep__wakeup__toString__invoke,__set_state and __clone are magical in PHP classes. You cannot have functions with these names in any of your classes unless you want the magic functionality associated with them.

ASCII CODES

ASCII CODES

Some of the symbols have been listed in bold to separate  them clearly from their descriptions.
  1. White Smiley
  2. ☻ Black Smiley
  3. ♥ Black heart
  4. ♦ Diamond
  5. ♣ Clove (Clover/Puppyfeet)
  6. ♠ Spade
  7. • Black dot
  8. ◘ Black square with circle cutout
  9. ○ White circle
  10. ◙ Black square with black circle
  11. ♂ Male Symbol
  12. ♀ Female Symbol
  13. Eighth Note (Eigth)
  14. Musical Double Eighth Note
  15. ☼ Sun
  16. ► Play (Forward) or Solid right arrow
  17. ◄ Rewind (Backward) or Solid left arrow
  18. ↕ Up and down arrows
  19. ‼ Double Exclamation Mark
  20. ¶ Pilcrow (Paragraph Sign)
  21. § The section sign
  22. ▬ Long and Thick Minus Sign
  23. ↨ Up & down arrows
  24. ↑ Up arrow
  25. ↓ Down arrow
  26. → Right arro
  27. ← Left arrow
  28. ∟ 90º degree angle
  29. ↔ Left and right arrow
  30. ▲ Solid up arrow
  31. ▼ Solid down arrow
  32.  Just a space
  33. ! Exclamation mark (bang)
  34. " Quote Quote
  35. # Pound sign
  36. $ Dollar sign
  37. % Percentage sign
  38. & "And" sign aka ampersand
  39. ' Apostrophe Apostrophe
  40. ( Left parenthesis
  41. ) Right parenthesis
  42. * Asterisk/Asterix/astrix (Or star)
  43. + Plus sign
  44. , Comma
  45. - Minus Sign
  46. . Period
  47. / Forward slash
  48. 0 0
  49. 1 1
  50. 2 2
  51. 3 3
  52. 4 4
  53. 5 5
  54. 6 6
  55. 7 7
  56. 8 8
  57. 9 9
  58. : Colon (colons)
  59. ; Semicolon
  60. < Left arrow (Big fish) Less than
  61. = Equals sign Equals sign
  62. > Right arrows (Small fish) Greater than
  63. ? Question mark
  64. @ At symbol
  65. A
  66. B
  67. C
  68. D
  69. E
  70. F
  71. G
  72. H
  73. I
  74. J
  75. K
  76. L
  77. M
  78. N
  79. O
  80. P
  81. Q
  82. R
  83. S
  84. T
  85. U
  86. V
  87. W
  88. X
  89. Y
  90. Z
  91. [
  92. \
  93. ]
  94. ^
  95. _
  96. ` A grave accent
  97. a
  98. b
  99. c
  100. d
  101. e
  102. f
  103. g
  104. h
  105. i
  106. j
  107. k
  108. l
  109. m
  110. n
  111. o
  112. p
  113. q
  114. r
  115. s
  116. t
  117. u
  118. v
  119. w
  120. x
  121. y
  122. z
  123. {
  124. |
  125. }
  126. ~
  127. A house shaped pentagon
  128. Ç A "C" with a cedilla
  129. ü A u with a umlaut (or diaeresis) over it
  130. é Acute accent over e
  131. â "a" with a circumflex over it
  132. ä An "a" with a umlaut (or diaeresis) over it
  133. à An "a" with a grave accent over it
  134. å An a with a circle or dot over it
  135. ç A "c" with a circumflex
  136. ê "e" with a circumflex on it
  137. ë An "e" with a umlaut (or diaeresis) over it
  138. è An "e" with a grave accent over it
  139. ï An "i" with a umlaut (or diaeresis) over it
  140. î An i with a circumflex over it
  141. ì An "i" with a grave accent
  142. Ä An "A" with a umlaut (or diaeresis) over it
  143. Å A capitol "A" with a circle or dot over it (Angstrom)
  144. É A capitol "E" with an acute accent over it
  145. æ The lower case vowel (grapheme) of the a and e squished together
  146. Æ Capitol AE combined into one letter
  147. ô A "o" with a circumflex over it
  148. ö An "o" with a umlaut (or diaeresis) over it
  149. ò An "o" with a mark over it called a grave mark
  150. û A u with a circumflex over it
  151. ù A u with a grave accent over it
  152. ÿ A "y" with a umlaut (or diaeresis) over it
  153. Ö A "O" with a umlaut (or diaeresis) over it
  154. Ü A "U" with a umlaut (or diaeresis) over it
  155. ¢ The "cents" or "cent" sign for currency
  156. £ The "pound sign" for currency
  157. ¥ The "Yen" sign for currency (Japanese/Chinese) Written in Japanese as
  158. Pts Points of Pints sign
  159. ƒ Forte: A curvy or italic F (italicized)
  160. á An a with a acute accent
  161. í An i with a acute accent
  162. ó An o with a acute accent
  163. ú A u with an acute accent over it
  164. ñ A n with a tilde ~ over it to make the Spanish enye
  165. Ñ A capital n with a tilde ~ over it to make the Spanish enye
  166. ª The feminine superscript A
  167. º The degrees or degree symbol
  168. ¿ Upside down question mark used in Spanish
  169. Negation / Logical Complement / Looks like start "quote" in Japanese / Chinese
  170. ¬ Negation / Logical Complement / Looks like end "quote" in Japanese / Chinese
  171. ½ One half symbol
  172. ¼ One quarter symbol O
  173. ¡ An upside down exclamation mark (looks like an "i" that sits lower than usual)
  174. « Double arrow pointing left
  175. » Double arrow pointing right
  176. ░ Light shaded block
  177. ▒ Medium shaded block
  178. ▓ Dark shaded block
  179. │ Line
  180. ┤Shape
  181. ╡Special Line
  182. ╢ You can make words with these
  183. ╖ Or shapes
  184. ╕ Or Mazes!
  185. ╣ANSI border characters
  186. (Could also be Pi, see 227)
  187. ANSI art pseudographics
  188. ANSI blocks / box drawing characters
  189. α The Greek letter "Alpha"
  190. ß A German letter, Eszett, scharfes S, sharp S
  191. Γ Greek uppercase "Gamma." Also, Greek number 3.
  192. π The symbol for the mathematical Pi in ascii
  193. Σ Greek mathematical symbol for sum
  194. σ Symbol for sum Symbol for sum
  195. µ Mu
  196. τ  Tau
  197. Φ Phi a variation of Phi
  198. Θ Theta, the 8th letter of Greek alphabet
  199. Ω Omega (24th letter of Greek alphabet)
  200. δ The symbol for delta
  201. ∞ The symbol or character for infinity (Infiniti)
  202. φ Phi (21st letter of Greek alphabet)
  203. ε Epsilon (5th letter of Greek Alphabet) / backwards 3 or curved E
  204. ∩ Intersection / Upside down U
  205. ≡ Equivalent symbol / Equal sign with 3 lines
  206. ± Plus and minus (Plus or minus) sign, Plus-minus Symbol
  207. ≥ Greater than or equal to symbol
  208. ≤ Less than or equal to sign
  209. ⌠ Ceil (mathematical symbol)
  210. ⌡ Floor (mathematical symbol)
  211. ÷ Divide or Division Symbol
  212. ≈ Symbol for approximate / Curvy or wavy equal sign =
  213. ° Degree or degrees code
  214. ∙ Medium height period Medium height period
  215. · Dot higher than usual
  216. √ Square Root Symbol (A check mark)
  217. ⁿ Superscript N
  218. ² Squared symbol, superscript 2 via ascii
  219. ■ Black box or square