Skip to content

mysql req.query not working ... #21

Open

Description

@Zono4ever

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

Activity

  1. niutech commented on Jan 10, 2017

    @niutech
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions