SELECT, query

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 18, 2012   (RSS)

By rez - January 17, 2012

$Driver = new Driver_Mysql($link, "SELECT services, company, rep FROM cms_vendors",


The problem is that "services" is from another table and is showing as numbers. How do I make something like the service:label code in a query like this?

thanks for the help.

Re: [rez] SELECT, query

By rez - January 17, 2012

SELECT cms_vendor_services.title, cms_vendors.company, cms_vendors.rep FROM cms_vendors INNER JOIN cms_vendor_services ON cms_vendors.services=cms_vendor_services.num",


thats working. these are two editors / tables, so how do i use cmsb to now replace this code and give the exact output which is stored in a variable and used in a script i have acquired?

hope that makes sense. thanks for your support.