Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

use javascript in php or how to redirect on any page in php <?php echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/loginform“;</script>’; ?>

Read More »

How to count number of days in between two dates in php?

How to count number of days in between two dates in php?   <?php $date1 = date_create(“2017-04-15”);$date2 = date_create(“2017-05-18”); //difference between two dates$diff = date_diff($date1,$date2); //count daysecho ‘Days Count – ‘.$diff->format(“%a”);?>   Get more information Read More Posts

Read More »

How to create login page with session in wordpress.

create login page with session in wordpres <?phpsession_start();if (isset($_SESSION[‘ID’])){ echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-dashboard”;</script>’;} <?php if(isset($_POST[‘submit’])) { $email=$_POST[’email’]; $password=$_POST[‘password’];                 global $wpdb;      

Read More »