php - Creating a table on HTML with information from various MySQL tables -
I have a website that I'm building for a school project, in which I already have many webpages , Though, and the database through the use of Foreach.
But on the question in this page, I am trying to retrieve data from different tables, so that a user can choose a category and submit a text and submit it.
But for some reason it is not outputting any data if I try with only one table and without using the table.field method, and just typing the fields, it works.
But for everything I know, I have to do this from various tables.
annione help me on this? & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt ;? Php mysql_connect ("localhost", "root", "") or die ("problema na conexao"); mysql_select_db ("trabalho1"); $ Query = "Select Technofitito, Tex.id, categoria.categoria, categoria.id from categoria, texto"; $ Result = mysql_query ($ query) or die (mysql_error ()); Echo "& lt; center & gt;"; Echo "& lt; table border = '2' & gt; \ n"; Echo "form