$filename = ‘myfile’; $path = ‘your path goes here’; $file = $path . “/” . $filename; $mailto = ‘mail@mail.com’; $subject = ‘Subject’; $message = ‘My …
Read MoreArticle
On delete Cascade in php
## ON Delete Cascade: Cascade will work when you delete something on table Courses. Any record on table BookCourses that has reference to table Courses …
Read MoreEmail Validation check in javascript
## Used To Validate Email In Javascript <script > function validateEmail(email) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; return emailReg.test( email ); …
Read MoreGenerating child categories
// For Generating Array Parent & Child Wise $this->dash_model->cattest(0)); public function cattest($parent_id) { $sqlquery = ” SELECT * FROM categories where parent='” .$parent_id . “‘ …
Read MoreHow to show location in Google maps
$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 MoreHow to make dynamic breadcrum using segments
<?php // This function will take $_SERVER[‘REQUEST_URI’] and build a breadcrumb based on the user’s current path function getBreadcrumbs($separator = ‘ » ‘, $home = …
Read MoreFacebook returned credentials after login in php
## FACEBOOK RETURN CREDENTIALS IF SUCCESFULLY LOGGED IN Facebook\GraphObject Object ( [backingDatarotected] => Array ( [name] => UserName [email] => UnserEmail [id] => …
Read MoreGet all child category under a category
## get all childs & their childs under a parent category //get all childs & their childs public function get_child_categories( $parent_id ){ $childtree = $this->nowbuild_child_tree($parent_id); …
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 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 More