increase input box numbers by clicking plus sign:: <script> $(document).ready(function() { $(“.input a”).click(function() { var inputEl = $(this).parent().parent().children().next().children(); var qty = inputEl.val(); if ($(this).parent().hasClass(“plus”)) qty++; …
Read MoreArticle
What is difference between datetime and timestamp?
Datetime is a datatype. Timestamp is a method for row versioning. In fact, in sql server 2008 this column type was renamed (i.e. timestamp is …
Read MoreChecking if string contains “HTTP://”
if( strpos($websiteLink, “http://”) !== false || strpos($websiteLink, “https://”) !== false){ $websiteLink = $val[‘website’]; }else{ $websiteLink = ‘http://’.$val[‘website’]; }
Read MoreHow To Remove html tags from validation_errors() in Codeigniter
How To Remove html tags from validation_errors() in Codeigniter Remove html tags from validation_errors() in Codeigniter Set the Opening tag and Closing Tags for …
Read MoreCheck if Image Exists or Not corrupted in Php
Check if Image Exists or Not corrupted in Php $full_path = Full Image path; (Like: ../dd/tmp.jpg) if(!file_exists($full_path)){ //Image Not Available or Not Exists }else{ //Image …
Read MoreHow to Align A image Center of Div (top,bottom,left,right) using CSS ??
How to Align A image Center of Div (top,bottom,left,right) using CSS ?? Example: <div class=”image”> <img alt=”” src=”Path” /> </div> CSS:: .image { …
Read MoreAlign a image in the center of the Div using CSS
Align a image in the center of the Div using CSS Stack of Codes HTML: <div class=”frame”> <img src=”foo”/> </div> CSS: .frame { …
Read MoreHow can I redirect from a view page to a method in the same controller on ajax success?
How can I redirect from a view page to a method in the same controller on ajax success?? If Anybody has answer please comment..!
Read MoreWhat are \r and \n meaning in PHP?
# What are \r and \n meaning in PHP? # What are r and n meaning in PHP? # What does “/r” “/n” mean \r …
Read MoreDefine base url in CI
#Base_url() defining in CodeIgniter Changes are made in config/config.php file. if(isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] == “on”){ $ssl_set = “s”; } else{ $ssl_set = “”; } $config[‘base_url’] …
Read More