troubleshooting Question

PHP Select Loop Insert

Avatar of cmaddrix
cmaddrix asked on
23 Comments1 Solution267 ViewsLast Modified:
I am trying to set an array using the entire column groupindex from my table wps_groups.  I want to then use the $test variable to make calls to a vendor api see code below.

$groupProductResult = $wps->api(array(
						"method"=>"product.getGroupProducts",	//(required) The name of the method to call
						"responseType"=>"HTML_OPTIONS", 		//(optional) could be PHP_ARRAY (default), HTML_OPTIONS, XML
						"group"=>"$test",   					//(required) Single group to retrieve products from.
						//"selectedProduct"=>"690-33092",   		//(optional) The part number to be selected.
						//"productSort"=>"ALPHA_ASC",   		//(optional) could be ALPHA_ASC, ALPHA_DESC, DEFAULT (if not provided DEFAULT)

I am using a simple select statement to get the groupindex column from the table and have spent the entire day writing while and for loops to try to use this information as shown above.  Nothing has worked out does anyone have any suggestions.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 23 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 23 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros