1

I wants to display the records in a circular position using php.

It is coming from Mysql DB. It is dynamic records, It may be 10 or 2 or 3 or 8.

For ex 1:

       2      3

 1                  4

 8                  5

       7       6 

For ex 2:

      2

 1         3

      4

For ex 3:

       2      3

 1                  4

    7            5

           6    

How can I do this in PHP.

halfer
  • 19,824
  • 17
  • 99
  • 186
  • 1
    Try to explain a little more detailed what it is you want? what kind of record? are it always the same number of records? – martindilling Oct 31 '14 at 08:08
  • It is coming from Mysql DB. It is dynamic records, It may be 10 or 2 or 3 or 8. –  Oct 31 '14 at 08:11
  • @user2688251,It's representation of data so it's not possible with PHP,You can use jQuery,Javascript to represent in this manner. –  Oct 31 '14 at 08:11
  • You tagged it javascript.. do you accept a javascript solution? – A1rPun Oct 31 '14 at 08:28
  • Yes, But data must come from PHP, mysql DB –  Oct 31 '14 at 08:30
  • I have explained in details with examples. How can you say this is unclear? Provide me a solution for this –  Oct 31 '14 at 08:42

1 Answers1

2

With some work to provide, you can adapt the response made here by replacing the images by the numbers you got from PHP.

Community
  • 1
  • 1
Veve
  • 6,643
  • 5
  • 39
  • 58
  • Here position is fixed. But I need this dynamic one. It may be 10 or 2 or 13 or 8 or 25 records. –  Oct 31 '14 at 08:20
  • Since you'll know the number returned by your query in PHP, you can make a list of the desired angles by dividing 360 by the number of records. – Veve Oct 31 '14 at 08:22