Comments (3)
I'm with @95Rawan, I think you should use this query instead:
dbConnection.query(
"select teams.logo , teams.description,teams.team_name, countries.country_name from countries inner join teams on teams.id_countries = countries.id_countries where countries.country_name=$1",
[country],
(err, res) => {
if (err) {
return cb(err);
}
console.log("res", res);
cb(null, res.rows);
}
);
from football_teams.
we fix it @95Rawan
from football_teams.
we use it after we upload in github @mhmdtshref
from football_teams.
Related Issues (20)
- Heroku link dosen't work HOT 1
- Browser shouldn't have an errors HOT 1
- Loved the sketch HOT 1
- you can use variables in SQL so you dont need to check what the country is HOT 1
- Remove unused variables HOT 1
- why have you got two assets folders? HOT 2
- Travis file is empty
- Delete unused modules HOT 1
- no need to wrap this in a function because it never gets called anywhere else HOT 1
- no tests!
- some of devDependencies are in Dependencies HOT 1
- commits should be more even...
- is it on heroku? HOT 3
- Need to add some texts above the search box HOT 1
- a good tool for drawing schemas...
- When click search button multiple times, the previous teams is not gone HOT 1
- Name of foreign key
- Required the querystring and didn't use it HOT 1
- User may type country team in small letters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from football_teams.