User Profile
Collapse
-
Yess replied to Eliminate duplicated values in an array that is being populated from a query loopingin PHPThanks a lot, I'll give it a go and shall let you know the outcome. -
Yess replied to Eliminate duplicated values in an array that is being populated from a query loopingin PHPI think I know what you mean i just don't know how to do it. I'm a newbie to both php and sql. I would really appreciate it if you could provide me with an example. Thanks!Leave a comment:
-
Yess replied to Eliminate duplicated values in an array that is being populated from a query loopingin PHPForgive me if I'm misunderstandin g what you said. How can I combine all the criteria into one query if I don't know which criteria and how many criterions the user will select? I'm a complete newbie and don't know how to do that.Leave a comment:
-
Yess replied to Eliminate duplicated values in an array that is being populated from a query loopingin PHPThanks for the quick reply. The problem is that the values I will be looking for are coming from checkboxes and the user may select one to many boxes. So I may be wrong but I don't think that would solve my problem. Perhaps there is another way???Leave a comment:
-
Yess started a topic Eliminate duplicated values in an array that is being populated from a query loopingin PHPEliminate duplicated values in an array that is being populated from a query looping
Hi,
Apologies for the long explanation I'm just trying to be as clear as possible.
Basically, I have a query that looks for products matching the criteria selected by the user through check boxes. The query is in a loop that will loop as many times as the number of criteria selected by the user.
E.g, if the user selected 2 criteria (criteria_id 11 and criteria_id 46), The query will loop the first time... -
Hi Halo2FrEeEk,
I only just seen your reply. Already test it and it works!
Thanks you very much, it had already taken me to long to get it to work... I cant beleive it was so simple!Leave a comment:
-
How to query and output data in a nested loop?
I'm trying to implement a function which will print all all the diferent type of products and their makes. I have 3 types of products and 6 makes. The problem is, it only prints one type of product 1 with the different makes, and then doesnt loop again to print the other types.
Here is my code:
...Code:function search_product($types, $makes, $orgProd, $orgName){ require_once ('../mysqli_connect.php');
No activity results to display
Show More
Leave a comment: