<script src=”http://maps.googleapis.com/maps/api/js?key=AIzaSyCHB-46cTJI56JgIi6kyKfG4CW7l5BclF4&sensor=false&libraries=places“></script> <script src=”js/jquery.geocomplete.min.js”></script> <script> $(function () { $(“#location”).geocomplete({ details: “.geo-details”, …
Read MoreCodeIgniter
Ck editor options
Description: <textarea cols=”80″ id=”editor_ckxhr” name=”description” placeholder=”Enter Description” id=”description” rows=”5″></textarea> <script type=”text/javascript”> CKEDITOR.replace(‘editor_ckxhr’, …
Read MoreIf home page then do some operation
<?php // If it is home page then do some operation:: $pathSlash = explode(“/”,$_SERVER[‘PHP_SELF’]); if(end($pathSlash)==”” || end($pathSlash)==”index.php”) { //It is home page //Do …
Read MoreClose current window and Reload parent window
Close current window and Reload parent window:: <script type=”text/javascript”> window.close(); window.opener.location.reload(); </script> This script works only if the new window is opened …
Read MoreFixed size content show in php
# Fixed size content show in php:: # Its shows only 700 character $busid = strip_tags(html_entity_decode($data)); echo substr($busid, 0, 700), ‘ ‘));
Read MoreHow to manage ck editor
## Manage ck_editor:: <script type=”text/javascript”> CKEDITOR.replace(‘editor_office2003’, { height: ‘300px’, enterMode: CKEDITOR.ENTER_BR, toolbar: [ …
Read Moreseo friendly url using slug
function makemeslug($data=””){ if($data){ $data = trim(strtolower($data)); $search = array(‘/’,’\\’,’:’,’;’,’!’,’@’,’#’,’$’,’%’,’^’,’*’,'(‘,’)’,’_’,’+’,’=’,’|’,'{‘,’}’,'[‘,’]’,'”‘,”‘”,'<‘,’>’,’,’,’?’,’~’,’`’,’&’,’.’); $ds = str_replace($search,” “,$data); $ds2 = preg_replace(‘/\s+/’,’ ‘,$ds); $slug = trim($ds2); $slug = str_replace(” “,”-“,$slug); return …
Read MorePhp-How to make slug in php
## make slug using this function. Like: stackofcodes.in/2016/01/10/how-to-search-data-from-table-in-php/ function makeslug($str) { return preg_replace(“/[^0-9a-zA-Z]+/”, “-“, $str); } $tog = how_can i make slug. $slug …
Read Morehow to fetch field value from table in php
## How to fetch a field value from database in php $r = mysql_query(“select field_name from table_name”); $value =@mysql_result($r,0,”field_name);
Read More