0

Can you add SQL code to an HTML file? If so, how?

14th Sep 2018, 2:25 AM
Ethan Morrell
Ethan Morrell - avatar
2 ответов
+ 3
HTML + SQL? That may be a logic error. What you can do is execute a function with any backend language (Like PHP) which will bring the response for you to treat and transform into HTML response. But all those SELECTs/INSERTs/etc occur on server side. HTML is at client side. The server treats a page and sends via HTTP/S the packet containing HTML for the browser to read. When you need to get data, it sends another packet to server containing the info it needs, the server processes and brings the response in HTML again to client to process... Tried to resume everything
14th Sep 2018, 2:39 AM
Alexander Santos
Alexander Santos - avatar
+ 3
You might use PHP because it works on the server. Not just HMTL.
14th Sep 2018, 3:31 AM
Email Not Activated