Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to remove blank spaces from Request using recursive in CakePHP

Removing the white spaces from a string is a easy task, but for doing this in whole of you website you need the recursive function in Cakephp The 'array_walk_recursive()' will recursively get the request(GET/PUT) data and remove the white/blank spac

NSTimer in IPhone SDK

Here is the code for: calling a method after a time interval delay. we use the NSTimer to implement this. NSTimer *timer= [NSTimer scheduledTimerWithTimeInterval:3.0 target:self

How to get selected number of indexes/key from a array

If you need to get some limited key values of an array then you can use function array_slice used in PHP Let see the example I'm having an array of 400+ values $exp = array("34", "45", "45", "554", "2".......); Now I'm limiting my this $exp arra

query roll back

hey ci experts can you help me plz where im making mistake.... my query is not roll backed although im setting the first parameter in the $this->db->trans_start(TRUE); as TRUE the queries are only rollback when i remove the $this->db->tra

onsubmit javascript Event

After submitting the information,user clicks the submit button. <!DOCTYPE html> <html> <head> <script> function confirmInput() { fname = document.forms[0].fname.value; alert("Hiii " + fname + "! You will now be redire

How to check if user's session is already started in PHP

If you want to know weather the session is already begin or not in PHP then, you can use of the syntax from PHP manual see the example below if (!isset($_SESSION)) session_start(); 2. And in case you are using PHP < 5.4 you have to the code

Opacity in CSS

To specify the how transparent an element is, we use opacity. Basically it defines the clarity of the image. Example <!DOCTYPE html> <html> <head> <style> img.t { opacity: 0.8; } </style> </

How to remove all special characters from a string using PHP

Hello Reader! If you want to remove all of the special charracter from a given string then PHP offers you to use 'preg_replace'; Lets see the example below:- $GivenString = 'a2|"dM!@£PO^&$f 12~'; $NewString = preg_replace('/[^A-Za-z0-9\. -

Hide Columns and Rows in Excel

Hiding columns and rows is useful to intensify the appearance of Excel Worksheet as the columns and rows which contains data which are not useful to keep displaying every time. So if you are looking to know how to hide the columns and rows in your

Variable Number of Parameters

If you declare a method that takes two parameters, on This method call , you need to pass two parameters along with it. But, Ruby facilitates to declare methods that can work with a variable number of parameters. Example def evon (*t) puts "

1 529 596
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: