Tutorials

Category

25 posts found

6 Apr 2014
0.35K
No Comments

in #MySQL cannot do it with any compression operator to check case sensitive value in column, so first convert your value into hash and compare with column value see code example how to do it. Here is example of table case_sensitive_col_id case_sensitive_col_val 1 SDTUTS.com 2 SDTuts.com 3 Sdtuts.com Using SHA1

Post in

2 Apr 2014
0.65K
No Comments
Protect your wordpress wpadmin panel

users can easily access or hacker’s programmed bots will send login request to your yoursite.com/wp-login page, but #wordpress have a good security with admin login panel, I have a wrote little code using #wordpress #hooks to prevent from other all users from your site wordpress wp admin login page. Prevent

Post in

11 Mar 2014
0.43K
No Comments
Keycodes in javascript

I have defined variables of keycodes from laptop keyboard, copy codes and use in your code line, and defined for developer and designer to easily use  who don’t want to know the keyCode. Minified variables First define variables Example how to use

Post in

11 Mar 2014
0.39K
No Comments

Define array to for shuffle keys Define array indexes to get random keys in while loop Assign array keys in random order, they will be shuffled in while loop and Print Array to see shuffled array key result This complete code of function

Post in

11 Mar 2014
0.12K
No Comments

&nbsp

Post in

10 Mar 2014
0.2K
No Comments
Develop code testing system on your localhost

Its hard to test your small code or function on files, because these serve our time to open files and write code save with die or exit in the file and then go to browser for testing, or we go to online php testing tools, but online php testing tools

Post in

10 Mar 2014
0.41K
No Comments

Sometimes we want call a function if user pressed two keys together at the same time. Like Shift+Enter, CTRL+S  more others, I wrote a little code how to call a function if user pressed two keys. copy keys name from another post to use easily with key names

Post in

10 Mar 2014
0.2K
No Comments

1.Remove duplicate values from array – ARRAY_UNIQUE Result 2.Re-order with random values from array-SHUFFLE Result 3.Remove null values from array-ARRAY_FILTER Result 4.Ascending order array values-SORT Result 5.Descending order array values-ARSORT Result 6.Ascending order array keys Result 7.Descending order array keys Result 8.Replace text string from array with STR_REPLACE Result 8.Change

Post in

21 Feb 2014
0.25K
No Comments
PHP Select optgroup from array

I have a array that contains continent and with countries. Now we need to reorder this array. array has been reorder with continent now set select with option group

Post in

5 Jan 2014
0.28K
No Comments

make $wpdb global variable

Post in