<,snip> > You can also do this right within MySQL without needing to create a variable. This should work: $sql = "SELECT DISTINCT restaurants.ID, name, address, inDate FROM restaurants, inspections WHERE restaurants.name != '' AND datediff(curdate(),inspections.inDate)>=30 GROUP BY restaurants.ID ORDER BY 'name' "; Take care, Floyd Ok I have to do the same thing again but with even more variables posted from a form I have a form where a user can choose a date range currently the form returns 6 variables (bmonth, bday, byear, emonth, eday, eyear) now I have to take those and get them all formatted together (well the bmonth, bday, byear together) in the mm/dd/yy format Wait can't I..... $month = $date(m, $bmonth) like that but then I still end up with 3 $month, $day, $year.... Does that work like that $date(m/d/y, $month, $day, $year) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] Making several variables into 1 variable Miller, Terion
- Re: [PHP] Making several variables into 1 variable Ashley Sheridan
- Re: [PHP] Making several variables into 1 variabl... Miller, Terion
- Re: [PHP] Making several variables into 1 var... Ashley Sheridan
- Re: [PHP] Making several variables into 1... Miller, Terion
- Re: [PHP] Making several variables i... Ashley Sheridan
- Re: [PHP] Making several variabl... Miller, Terion
- Re: [PHP] Making several var... Floyd Resler
- Re: [PHP] Making several var... Miller, Terion
- Re: [PHP] Making several var... Bastien Koert
- Re: [PHP] Making several variables i... Bastien Koert
- Re: [PHP] Making several variables into 1... Ian
- RE: [PHP] Making several variables into 1 var... Bob McConnell
- Re: [PHP] Making several variables into 1... Bastien Koert
- Re: [PHP] Making several variables i... Miller, Terion
- Re: [PHP] Making several variabl... Bastien Koert
- Re: [PHP] Making several var... Shawn McKenzie
- RE: [PHP] Making several variables into 1 variabl... Bob McConnell
- Re: [PHP] Making several variables into 1 var... Miller, Terion