Slide Toggle Checkbox – Pure CSS
From: http://www.sitepoint.com/css3-toggle-switch/ Pure CSS toggle switch example – replaces checkboxes.
Slide Toggle Checkbox – Pure CSS Read More »
From: http://www.sitepoint.com/css3-toggle-switch/ Pure CSS toggle switch example – replaces checkboxes.
Slide Toggle Checkbox – Pure CSS Read More »
Loop through PHP Request Values In order to Loop through PHP Request Values – GET and POST without knowing what they all might be, you can simply use the following code: foreach ($_REQUEST as $key => $value) { $value = mysql_real_escape_string( $value ); $value = addslashes($value); $value = strip_tags($value); if($value != “”){$requestnumber ++;} echo $key.
Loop Through PHP Request Values – GET and POST Read More »
It’s handy for people who don’t know that you have a mobile version of your site, or know what the URL is (is it sitename.com/mobile? Is it mobile.sitename.com? Is it something else?) On the other hand people often want to view the full version of a site on their mobile device. You can achieve this
Mobile Redirection With Full Site Option Read More »
The title says it all: mysql_set_charset(‘utf8’, $database_connection); // charset $sqlStr = “SELECT * FROM yourtable;”; //provide the query $result = mysql_query ($sqlStr, $database_connection) or die ($sqlStr); // get the results $rows = array(); // create the array if (mysql_num_rows($result)) { while ($row = mysql_fetch_assoc($result)) { // populate array with results $rows[] = $row; } }
Encode Mysql Results to JSON Read More »