Using PHP Display data side by side from mysql database

Dear sir

As i am a new PHP coder and want to learn more about PHP

I have a following mysql Table

Name login time login date
Shaiful 10:12 2013-11-11
Masum 11:13 2013-11-10
Shaiful 12:14 2013-11-12
Shiab 13:02 2013-11-10
Sonjoy 01:12 2013-11-09
Shaiful 18:03 2013-11-09

i want to show the table as follows using php

Name login time Login date login time login date login time login date
Shaiful 10:12 2013-11-11 12:14 2013-11-12 18:03 2013-11-09
Masum 11:13 2013-11-10
Shiab 13:02 2013-11-10
Sonjoy 01:12 2013-11-09

please help me to find the solution

Thanks

What part if it are you having trouble with?

Database query
“Using PDO” in my signature

Looping through results
http://php.net/manual/en/control-structures.for.php
http://www.php.net/manual/en/control-structures.foreach.php
http://www.php.net/manual/en/control-structures.while.php

Sponsor our Newsletter | Privacy Policy | Terms of Service