#How do I use CSS id with PHP?

6 messages · Page 1 of 1 (latest)

wet moon
#

I don’t exactly understand, seems like you should actually be using JavaScript in this case for the toggle

#

Besides that css works the same with ids and classes.

small ember
#

PHP have nothing to do with this. You have some misunderstanding here

#

A. You dont connect mysql to phpstorm. Your phpstorm is just a text editor, that nothing to do with your work. If you want to do on the table, just simply doing on some basic js and the css the element of the table with class and id
https://www.w3schools.com/js/js_htmldom.asp
B. Just add a class to the cell you want, like

foreach (foo of bar) {
  echo "<td class=baz>$row['dog']</td>"
}

https://www.w3schools.com/jsref/dom_obj_table.asp