table plots:
id, section;
query:
SELECT CONCAT(id, "-", section)
FROM plots
ORDER BY id, section
Cheers!
> --
> This group is managed and maintained by the development staff at 360
> PSG. An enterprise application development company utilizing
> open-source technologies for todays small-to-medium size businesses.
>
> For information or project assistance please visit :
> http://www.360psg.com
>
> You received this message because you are subscribed to the Google
> Groups "Professional PHP Developers" group.
> To post to this group, send email to Professi...@googlegroups.com
> To unsubscribe from this group, send email to
> Professional-P...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/Professional-PHP
OH yeah, the table:
CREATE TABLE `plots` (
`ref` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,) ENGINE = MYISAM ;
`id` INT( 10 ) NOT NULL ,
`section` VARCHAR( 255 ) NOT NULL ,
INDEX ( `id` )
SELECT CONCAT(id, "-", section) AS pltono