Ask your Question

Write to us !

Ask Question !

Adjust Server Time

Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself.

PHP CODE

$today = date('Y-m-d-G');

$today = strftime("%Y-%m-%d-%H", strtotime("$today -5 hour"));

If your server thought it was 12 midnight, but it was really 7 pm, this will roll the $today variable back five hours to be correct.

 

 

... Read More

Magento2: How to get Product Details by SKU or Product Id

We can use below code in our controller file as well as in block file according to our need.

We are using the below code in our block file of our module.

Path: app/code/Letsknowit/HelloWorld/Block/Helloworld.php

<?php

 

namespace LetsknowitHelloWorldBlock;... Read More

PHP program to print below output

Question 232323 

Output : 222 333

I need coding in php and that o/p please help me

... Read More

how to optimize a mysql query with the union of 30 tables

 How to optimize a mysql query with the union of 30 tables(all tables are indexed but result is really very slow)

... Read More

Delete all Duplicate Rows in MySQL

Delete all Duplicate Rows except for One in MySQL(Delete all Duplicate Email)

Table name - email

id   email

1   basant@gmail.com

2   aman@gmail.com

3   basant@gmail.com

4  basant@gmail.com

5  aman@gmail.com

6  deepak@gmail.com

 

 

... Read More