Title: financialcoder's Replies | WordPress.org

---

# financialcoder

  [  ](https://wordpress.org/support/users/financialcoder/)

 *   [Profile](https://wordpress.org/support/users/financialcoder/)
 *   [Topics Started](https://wordpress.org/support/users/financialcoder/topics/)
 *   [Replies Created](https://wordpress.org/support/users/financialcoder/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/financialcoder/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/financialcoder/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/financialcoder/engagements/)
 *   [Favorites](https://wordpress.org/support/users/financialcoder/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rest Routes – Custom Endpoints for WordPress REST API] Use API Parameters in Custom SQL Query Endpoint](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/)
 *  [financialcoder](https://wordpress.org/support/users/financialcoder/)
 * (@financialcoder)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/#post-16331061)
 * Thats amazing ! I will try the new features !
   Thanks both of you for the messages!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rest Routes – Custom Endpoints for WordPress REST API] Use API Parameters in Custom SQL Query Endpoint](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/)
 *  [financialcoder](https://wordpress.org/support/users/financialcoder/)
 * (@financialcoder)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/#post-16328419)
 * So, it is not clear how to tell the plugin to replace the variables in the MySQL
   query, with data received from the API that the plugin is creating… would you
   mind clarifying the syntax required by the plugin, please…. I couldn’t find it
   anywhere in the plugin documentation.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rest Routes – Custom Endpoints for WordPress REST API] Use API Parameters in Custom SQL Query Endpoint](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/)
 *  [financialcoder](https://wordpress.org/support/users/financialcoder/)
 * (@financialcoder)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/#post-16326837)
 * I have also attempted the Custom SQL Query with the following Sintax :
   UPDATE
   zaqgutmy_WPUKX.NK_MKTSTATUS SET code = <Parameter1> WHERE instrument = “<Parameter2
   >”But the plugin responds with this:
 * {
 *     “success”: **false**,
 *     “data”: “You have an error in your SQL syntax; check the manual that corresponds
   to your MySQL server version for the right syntax to use near ‘<Parameter1> WHERE
   instrument = “<Parameter2>”’ at line 1”
 * }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rest Routes – Custom Endpoints for WordPress REST API] Use API Parameters in Custom SQL Query Endpoint](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/)
 *  [financialcoder](https://wordpress.org/support/users/financialcoder/)
 * (@financialcoder)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/use-api-parameters-in-custom-sql-query-endpoint/#post-16326828)
 * I am writing a simple Custom MySQL Query, as follows:
   UPDATE zaqgutmy_WPUKX.NK_MKTSTATUS
   SET code = $signal WHERE instrument = $symbolI want the plugin to replace the
   2 variables started with $, by the actual Custom Parameters…. But it is not being
   accepted… What would be the expected format to write this snipped to replace 
   the Custom Parameter by its value coming from the http request ?

Viewing 4 replies - 1 through 4 (of 4 total)