#Jquery: Click event doesn’t work after append. $(document).on(‘click’, ‘.’, function(e) //do whatever });
Read MoreMonth: May 2017
fibonacci in php
<?php if(!empty($_GET[‘upto’])){ $upto = $_GET[‘upto’]; }else{ $upto = “”; } function getfibo($upto=5){ $second =1; $first =0; $fibo_arr[] = $first; $fibo_arr[] = $second; for($i=1; $i<$upto; $i++){ …
Read MoreRouting using htaccess
RewriteEngine on RewriteBase / ###Maintainance ## RewriteRule ^maintainanace/$ maintain.php RewriteRule ^logout/$ logout.php RewriteRule ^logout$ logout.php RewriteRule ^products/([^/]*)/([^/]*)/$ products.php?slug=$1&id=$2 [L]
Read MoreShow location in Google map using php
<?php $location=”Kolkata”; ?> <div style=”width: 100%”> <iframe width=”100%” height=”480″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”https://maps.google.it/maps?q=<?php echo $location;?>&output=embed”></iframe> </div>
Read MoreImage upload in php
#IMAGE UPLOAD if ($_FILES[‘list1’][‘name’] != “”) { $allowed_ext = array(“jpg”, “jpeg”, “png”, “gif”); $extension = explode(‘.’, $_FILES[“list1”][“name”]); $ext = strtolower(end($extension)); if (in_array($ext, $allowed_ext)) { $newname …
Read MoreJQuery- Find and change first div css in php
## Finds <div class=”catbox”> in “#Step1” and changing the css $(“#Step1″).find(‘div.catbox’).css(‘background-color’,”);
Read MoreOn click div change it child css in jquery
## On click “.xc-category” , Finds <div class=”catbox”> in “.xc-category” and changing the background-color <script> $(“.xc-category”).click(function(){ var dis = this; $(“#Step1″).find(‘div.catbox’).css(‘background-color’,”); $(dis).find(‘div.catbox’).css(‘background-color’,’#C3E7FF’); }); </script>
Read MoreOn delete Cascade in php
## On Delete one main table data ,delete related others table data. ALTER TABLE Courses ADD FOREIGN KEY (CatCode) REFERENCES Categories(Code) ON DELETE CASCADE;
Read MoreHtaccess help
http://serverfault.com/questions/99050/how-do-you-do-wildcard-subdomains/99051 https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=wild+card+subdomain+htaccess&*
Read MoreSql-. On delete Cascade in sql
#ON DELETE CASCADE IN SQL Cascade will work when you delete something on table Courses. Any record on table BookCourses that has reference to table …
Read More