1 0 1 n o w.com
Search Engine All- in One Place !

Create periodic table with PHP ,CSS


I create a periodic table of elements to get information about a specific element from database.i have a problem to get the row and column number in the PHP code ,look at the image,the first element is group 1 period 1 and so on
enter image description here

my code

echo'<div class="element period-1 group-1  " style="background-color:'.$color.'" >
      <span class="number">'.$id.'</span>
      <span class="symbol">'.mb_substr($name,0,2).'</span>
      <span class="name">'.$name.'</span>
      <span class="atomic">'.$pro_number.'</span>
      </div>';

how can i change the element period-1 group-1 “numbers” with code
i use for loop and while loop but not working well
i need help please
Thank you

to solve my problem and give me the right code



Source link
php,css,periodic

#Create #periodic #table #PHP #CSS

© 2023 All Rights Reserved. 101now.com ® is a free online search engine index services. 101now™ has large comprehensive directories for people all ages or any location where you can benefit and enjoy our platform. We provide up to date information and more on a daily basis.
Terms of Service | Privacy
newyorkconstructionco.com 101now.net 101now.org