Search found 4 matches
- Mon Apr 05, 2010 12:51 pm
- Forum: PHP - Code
- Topic: search for row duplicates
- Replies: 1
- Views: 53
search for row duplicates
I have a database where in 2 columns some of the information is repetitive. Ex: col1, col2 1,2 2,4 1,3 1,2 1,2 2,5 2,4 And I want to search the rows and just pull out the unique ones, leaving out the duplicates. So in the above example, I'd be left with: 1,2 2,4 1,3 2,5 I'm guessing an array, but ca...
- Sun Apr 04, 2010 6:43 pm
- Forum: PHP - Code
- Topic: looping twice function
- Replies: 4
- Views: 691
Re: looping twice function
After a few days of going crazy over this, I think my code just stopped making sense. That is an understatement. ;) You should get a PHP book or take a PHP class because you do not understand the basic syntax. Yes! this worked. Well, the top half did everything. I don't think I'll need the second h...
- Sun Apr 04, 2010 6:42 pm
- Forum: PHP - Code
- Topic: looping twice function
- Replies: 4
- Views: 691
Re: looping twice function
After a few days of going crazy over this, I think my code just stopped making sense. That is an understatement. ;) You should get a PHP book or take a PHP class because you do not understand the basic syntax. Yes! this worked. Well, the top half did everything. I don't think I'll need the second h...
- Sun Apr 04, 2010 12:52 pm
- Forum: PHP - Code
- Topic: looping twice function
- Replies: 4
- Views: 691
looping twice function
I'm trying to write a code to create a menu from a database. The code is supposed to find the 'page_name' which is the menu name and then loop through all existing "sections" of that menu (appetizers, salad, soup...), then loop through each section to find the food items. I guess what I en...