in reply to Right Number DB
or just break out of the while loop if $count > 1 before setting $type, et al.while ... ++$count; if ( $count == 1 ) { $type = ... ... }
If this isn't helpful, please provide what output you expect to see if there are 1, 2, or 3 database records. Your description is unclear.
|
|---|