Posts

Showing posts from February, 2013

Simple html css tooltip.

Simple html css tooltip. this is html css tooltip which is faster than jquery or javascript tooltip simple code and paste this code in file and hover on link <!-- css code --> <style>   .tooltip { border-bottom: 1px dotted #000000; color: #000000; outline: none; cursor: pointer; text-decoration: none; position: relative; } .tooltip span { position: absolute; display:none; } .tooltip:hover span { border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); font-family: Calibri, Tahoma, Geneva, sans-serif; position: absolute; left: 1em; top: 2em; z-index: 99; margin-left: 0; width: 250px; display:block; } .tooltip:hover img { border: 0; margin: -10px 0 0 -55px; float: left; position: absolute; display:block; } .toolt

Define DDL and DML in my mysql?

Define DDL, DML commands DDL Data Definition Language (DDL) statements are used to define the database structure or schema. examples are: CREATE - to create objects in the database ALTER - alters the structure of the database DROP - delete objects from the database TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed COMMENT - add comments to the data dictionary RENAME - rename an object DML Data Manipulation Language (DML) statements are used for managing data within schema objects. examples are: SELECT - retrieve data from the a database INSERT - insert data into a table UPDATE - updates existing data within a table DELETE - deletes all records from a table, the space for the records remain MERGE - UPSERT operation (insert or update) CALL - call a PL/SQL or Java subprogram EXPLAIN PLAN - explain access path to data LOCK TABLE - control concurrency

How to create custom 404 redirect in codeigniter?

How to create custom 404 redirect in codeigniter? there are lots of post on website which told you about custom 404 redirect in codeigniter but most of them are worth less. Give a minute on this post and you will see this blog give exact what you want. Step first: Create a file in your controller errors.php and paste this code in this file <?php class Errors extends Controller { function Errors() { parent::Controller(); } function error_404() { $this->load->view('error_404'); } } ?> Step Two:  Create a file in your View folder name as error_404.php and write you error msg in this page Step Three: Now opne this file   yoursite/system/core/ Common.php and search this function  show_404() Please note: in many version common.php file in another folder so you can search for this file on this root also  yoursite/core/codeigniter/Common.php A nd replace this code with this function function show_404($page = '') { he

How to submit a form via curl in php?

How to submit a form by curl Lets take and example this is your submit form <form action="website.com/signup" method="post"> <input type="text" name="email" /> <input type="submit" name="submit" value="Submit" /> </form> and you want to submit this form by curl So, Simple copy and paste this in you php file and change field name and form action url and run the file This code will help you submit a form via curl <?php $fields_string =''; $url = 'website.com/signup'; $fields = array( 'EMAIL' => $_POST['email'] ); //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL