Is it possible to create an e-commerce website with html, css and js? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to create an e-commerce website with html, css and js?

29th May 2019, 5:13 PM
ANBARASAN R
ANBARASAN R - avatar
5 Answers
+ 5
ANBARASAN R totally agree with Alessio you need to make back-end for making any e-commerce website, you can make that with the help of two more languages at an beginner level by using Php, and MySQL 🍎 Php is an server side scripting language which is used to make back-end database at the server and to connect that database to the client side front end language or gui. 🍎 you need to write the establishment of connection code in php and then use sql query within the php to fetch data from the server If you have any further query then you can ping me Have some 🍎 🍎 🍎 🍎 🍎
29th May 2019, 5:31 PM
DishaAhuja
DishaAhuja - avatar
+ 14
ANBARASAN R You can also use FIREBASE (or any other serverless way). (Not recommended for an e-commerce site). You can not make ecommerce website using only html, css and JSbecause you can just create front end using this but create backend for all the process for order mgt or inventory mgt you need a backend language. source: https://www.quora.com/How-can-we-make-an-e-commerce-website-using-only-HTML-CSS-and-JS I hope I was helpful
29th May 2019, 5:15 PM
Alessio Benvenuti
Alessio Benvenuti - avatar
+ 6
ANBARASAN R you can connect your php database with connection code like this for interaction with back-end database php is used which is an server side programming language used to fetch data from server and sent them to respective client who has requested for data by making query by typing text on front end You have to Just make the connection code between html and php for maintaining the server and client connection from front end to back end for retrieval of data and fetching of data . You can do this by this ways <?php $localhost = "127.0.0.1"; $username = "root"; $password = ""; $dbname = "project"; // db connection $connect = new mysqli($localhost, $username, $password, $dbname); // check connection if($connect->connect_error) { die("Connection Failed : " . $connect->connect_error); } else { // echo "Successfully connected"; } ?> this way you can connect front end html with back-end php for maintaining data communication between front and back-end have some 🍎 🍎 🍎 🍎 🍎
29th May 2019, 6:03 PM
DishaAhuja
DishaAhuja - avatar
+ 1
Thanks Alessio, Will check.
29th May 2019, 5:17 PM
ANBARASAN R
ANBARASAN R - avatar
0
Thanks DishaAhuja
29th May 2019, 5:35 PM
ANBARASAN R
ANBARASAN R - avatar