Jump to content

sandshakimi

New Members
  • Posts

    4
  • Joined

  • Last visited

sandshakimi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well, if I use the term "ITSchedule70" in the query, that seems to defeat the whole purpose. Everytime the form is submitted, the web service call will return a different contract vehicle. "ITSchedule70" is one of many. I believe I need to pass a variable in the WHERE criteria, so the SQL query doesn't have to be written each time. Not sure, perhaps I'm thinking of this the wrong way? Or missing something fundemental? Does that make sense?
  2. More clarification: Evertime the user submits the form, I'm making a call to the web service. So it might return 0=>'ITSchedule70' or 1=>'ITCommodityProgram' or 2=>'OtherContractVehicle' I've got 4 contract vehicles. Based on that returned contract vehicle, I need to use that as a WHERE criteria to return results from a Products table. So like: SELECT * FROM `product` WHERE `contact_vehicle_id` = 2 So the important point is the WHERE needs to be dynamic, because on the fly.
  3. Sorry, I should clarify. Its my inexperience with PHP. So now I have this object, how do I use it to write PHP in a SELECT query. Specifically, using WHERE condition the contract vehicle should be ITSchedule70 in the query statement.
  4. I'm using a web service call, my response comes back as an array: stdClass Object ( [contractVehicle] => Array ( [0] => ITSchedule70 [1] => ITCommodityProgram ) ) I then need to hand this response off to anther developer who needs to know that "ITSchedule70" is the selected Contract Vehicle (actually there could be more than one, this only returns one for now), so he can insert it into a SQL query against a MySQL database (to match "Products" with the right "Contract Vehicle". So basically how do I do that? How to wrap it up and send it off, and how to insert a query?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.