krileon wrote:
We can't really help you with debugging custom queries on non-CB and non-Joomla tables as we've no mean of testing and confirming your query (we are not going to setup custom tables to match your environment, sorry). The below for example works fine.
Dear Kyle.. dont worry about it..
Am just checking about having the "set" function in Query Field..
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near SELECT @bil:=@bil +1 as bil, cb_firstfield..
FYI, I would like to display a first column with numbers generated, for example 1, 2, 3.. to display the table row..
Code:
SET @bil=0;
SELECT @bil:=@bil +1 as bil, cb_companyname as companyname, cb_address01 as add01, cb_address02 as add02, cb_postcode as pcode, cb_city as city, cb_state as state, cb_record as record
FROM `myprefix_comprofiler`
WHERE cb_companyname='[cb_companyname]' AND cb_record='Active'
ORDER BY cb_companyname ASC
I believe the field query is unable to do this:
Code:
SET @bil=0;
SELECT @bil:=@bil +1 as bil
Do you think so?