Home PHP
 
 
 
Search
Search Only:

Search Keyword function

Total: 42 results found.

Page 1 of 3
... form" />   <input type="button" id="mybutton" value="Save" /> </form> Now  when the button with id "mybutton" is clicked we want to submit the form using the JQuery submit() function which ...
...  Now use the following JQuery code to obtain the value for the selected radio button within the Group $("input[name=RADIOGROUP]").change(function());  ...
... in the head section of your HTML page <script type="text/javascript">         window.addEvent('domready', function()); });  </script> Now where ever you want the tooltip to appear, place ...
... or function exists or is set and thus is not limited to jQuery alone.     ...
... function available in PHP 4 and 5 which shifts an element off the beginning of an array. See example below$array = array('a','b','c','d'); $first_element = array_shift($array); echo $first_element;The ...
... it has to do with the readfile php function.    Error: invalid regular expression flag v Source File: http://joomla/components/com_virtuemart/fetchscript.php?gzip=0&subdir[0]=/themes/default&file[0]=theme.js&subdir[1]=/js&file[1]=functions.js&subdir[2]=/js/admin_menu/js&file[2]=virtuemart_menu.js&subdir[3]=/js/admin_menu/js&file[3]=nifty.js&subdir[4]=/js/admin_menu/js&file[4]=fat.js&subdir[5]=/js/extjs2&file[5]=yui-utilities.js&subdir[6]=/js/extjs2&file[6]=ext-yui-adapter.js&subdir[7]=/js/extjs2&file[7]=ext-all.js ...
Question: How to get the current UNIX timestamp using PHP? UNIX TIMESTAMP: Is the time measured in seconds since the start of the Unix epoch "1 January 1970"   Answer: Use the PHP time function ...
...    SELECT * FROM ads ORDER BY RAND() LIMIT 3 We've used the RAND() function to return random table rows ...
Question: How to convert a mySql Datetime field to a Unix Timestamp using PHP?   Answer: In the example you'll find a handy PHP function that will do the conversion. <?php $DATETIME = '2010-04-22 ...
Question: How to remove all white spaces within a string using PHP?   Answer: There are two functions that could be used namely str_replace and  preg_replace. First we'll give an example using str_replace. ...
Question: Getting Warning: split(): REG_BADRPT when using the split PHP function when I try to split a string after each question mark (?). eg. $string = "ABC?DEF?BGT"; list($a,$b) = split('?',$string); ...
12. How to set a timer in JavasScript?
(Javascript/Javascript)
Question: How to set a timer in JavaScript?   Answer:  If we want to call a function every 10 seconds using JavaScript we can accomplish it by implementing the following piece of code window.setInterval('yourfunction()', ...
... the PHP array_filter function. If you don't supply a callback function it will filter out all values that are equal to false $new_array = array_filter($array);  ...
14. How to encode a URL in JavaScript?
(Javascript/Javascript)
Question: How to encode a URL in JavaScript?   Answer:  There are two JavaScript function that you can use to accomplish this  encodeURIComponent()Encodes a URI component Encodes special characters ...
... is set to 0 and the width is given.   NOTE: Make sure the GD libraries are enabled in order to use this script.    Script:   /** * make_thumb() * This function ...
...     <!--         $(document).ready(function() ,             success:  function()             };                         $('#upload').submit(function() );         });  //-->  </script>  ...
Question: How to convert all $_POST or $_GET values to Integers?   Answer: By using the built-in PHP functions  array_map and intval. array_map = Applies the callback to the elements of the given ...
Question: How to remove the first element of an array using PHP and then storing the element into a variable?   Answer: By using the PHP function 'array_shift' we can remove the first value of an ...
...    Answer: Use the 'htmlspecialchars' PHP function tdisplay the code as contenthtmlspecialchars - Convert special characters to HTML entities (PHP 4 & 5) See the example below htmlspecialchars('<script ...
... B.   Answer:  Use the PHP function array_diff Description array array_diff ( array $array1 , array $array2 [, array $ ... ] ) Compares array1  against array2  and returns the difference. ...
«StartPrev123NextEnd»

 
Banner