@@ -11,42 +11,69 @@ var connection = mysql.createConnection({
database:'ytmt'
});
functiongetYourToons(id,cb){
functiongetYourToons(otherUser_name,cb){
//현재 로그인한 유저가 아닌 다른 유저들의 내툰리스트 가져오기
varsqlquery="SELECT u.username, t.name, t.toon_index, t.thum_link, t.webtoon_link, t.week, t.site FROM user u, user_toon_relation ur, toon t WHERE u.id != '"+id+"' && u.id=ur.user_id && t.toon_index=ur.toon_index;";
console.log(otherUser_name);
varquery1="SELECT id FROM user WHERE username = '"+otherUser_name+"'";
// var sqlquery = "SELECT u.username, t.name, t.toon_index, t.thum_link, t.webtoon_link, t.week, t.site FROM user u, user_toon_relation ur, toon t WHERE u.username = '"+otherUser_name+"' && ur.user_id = '"+id+"' && t.toon_index=ur.toon_index;";
varquery2=`SELECT t.name,t.toon_index, t.thum_link,t.webtoon_link,t.week, t.site FROM user_toon_relation ur,toon t WHERE ?=ur.user_id && t.toon_index=ur.toon_index;`