How can I make this work?
I use ejs, express, nodeJS and mySQL. This code gives me an error : Cannot POST /search .
I think the idex.ejs and the app.js is fine but I messed up the searchRouter …
I have a MongoDB database and I want to import with
forEach 3 arrays. This is a recipe and I want to looks like first column the
quantity next to a new column the
unit and next to the
ingredients, each one is imported from a database Array list.
This codepen link: https://codepen.io/gianlucaas/pen/bGrmQVO hosts my code for one of my pages for a new website. the problem is, when I go and test it on mobile (you can try it too, on the codepen link), it looks perfect. you can see the rolex goes to the top right corner (the image) and it looks … Read more
So, I have a form, in which the user will select inputs. Firstly, I want to create a text input and in this when the user writes for example A, it will suggest every data from the MYSQL database that starts with A etc. The page of the form is /air_tickets and then the user will be redirected to another page.
Inside the views folder, there are all my .ejs pages (html).
I have a page where there is a form, in which user will fill inputs. Then, I redirect to another page in which depending on the user’s choices some data will be displayed (the data will come from a mysql database). This is my code:
index.js (here are my routes)
I want to loop a star svg based on the stored rating in my mongo database. I tested the function separately so I know it should work, but I am having syntax issues with inserting the function into my ejs page and adding the html into the function.
I want to make some validations when the form submitted. However when the form submitted validation function seems like invoking correctly. The alert part doesn’t come up but when i try to alert like this
As the title says, none of the CSS files I linked are being loaded. The weird part is that the CSS of another page in the same website loads just fine.
I’m using express as server and ejs as a templating engine.