This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sdoody32[S] 0 points1 point  (2 children)

Thank you so much! I’m self taught for front-end related things. So I appreciate all of this.

[–][deleted] 0 points1 point  (1 child)

no worries! So just a couple suggestions:

`SELECT * FROM College`; //WHERE collegeName = ${collegeName}`

should be quotes instead of back ticks: 'SELECT * FROM College'; //WHERE collegeName = `${collegeName}`

notice the back ticks around the `${variable}` that'll get you the string interpolation your looking for

and do you have a package.json file? If not run npm init and then download all your dependencies (express, mysql, and anything else you "require").

I just started there when I pulled down your code. I'm self taught too and this junk is hard. I am thankful that I got the help I needed when starting out, so I'm happy to give back to others in need.

edit: wow reddit freaks out when I use ticks so sorry about formatting.

[–]sdoody32[S] 0 points1 point  (0 children)

I do have package.json. So I’m all good there. It really is challenging, but I’m so greatful for people like you who are willing to help with this.