Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql req.query not working ... #21

Open
Zono4ever opened this issue Aug 17, 2016 · 1 comment
Open

mysql req.query not working ... #21

Zono4ever opened this issue Aug 17, 2016 · 1 comment

Comments

@Zono4ever
Copy link

Zono4ever commented Aug 17, 2016

Hi there,
I´ve try your code and is it amazing. And I've create a test with mysql and every think is fine until I try to get the req. from query .
i.e : http://api.cysub.com/user?name=name&email=email
and you can get the ?name=name&email=email with req.query and it will show somethink like this
{ name: 'name', email: 'email' } with ( console.log(req.query)
but is doen't.
PS / On my test site you can see the last one "test":[] this should print "test":[{ name: 'name', email: 'email' }] if is work.

I´ve creat a control for this node.php like a terminal. You can see its here http://api.cysub.com/?a=setup type help to see the command's.

The terminal css you can get is here from Marcus Bizal.
http://codepen.io/marcbizal/pen/VLKoam

@niutech
Copy link
Owner

niutech commented Jan 10, 2017

Sorry for the delayed answer. Unfortunately, your website does not work: Error requesting user: Failed to connect to hoanglong-restaurant.com port 39999: Connection refused
Neither does your terminal: -bash: pwd: command not found
That said, you should be able to send the query params to your node.js app using the form: node.php?path=/user%3Fname%3Dname%26email%3Demail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants