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 MorePHP
If 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 Moreck editor options
## CK EDITOR OPTIONS:: <script type=”text/javascript”> CKEDITOR.replace(‘editor_office2003’, { height: ‘300px’, enterMode: CKEDITOR.ENTER_BR, toolbar: [ { name: ‘document’, groups: [‘document’, ‘doctools’], items: [‘Save’, ‘NewPage’, ‘Preview’, …
Read MoreHow to Connect Database in php
# It used in core php $dbhost = HOSTNAME; $dbuser = DATABASE USERNAME; $dbpass = DATABASE_PASSWORD; $dbname = DATABASE_NAME; $link = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
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 More