Answer the question
In order to leave comments, you need to log in
How to build a table from a database?
Hello! Help build a table with data from MySQL using php with a table selection through <select>
Thanks to everyone who responds!
Answer the question
In order to leave comments, you need to log in
while ($row=mysql_fetch_array($tableFieldQuery)) {
foreach($row as $rowField) {
echo "<td>" .$rowField."</td>";
}
}
For starters, mysql is banned in new versions of PHP (more precisely, its support will be discontinued if it hasn't happened already). And then we google about OOP, frameworks, Twig, etc.
And without OOP, frameworks, Twig, etc. can you get by?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question