I have an application that was built by someone else that I need to edit. There is an area of code that I cannot find the right syntax for ... can someone please help.
The select statement in POSTGRES goes like this:
SELECT collection|| '/' ||color AS collection
FROM table
WHERE series = 'random number' <-- this is controlled by an array in the php
in the php the existing code looks like this:
$tableName = $db->getOne('SELECT collection FROM item_series WHERE series = ?', array($series['marriage_1']));
}else{$tableName = $series['marriage_1'];}
I have tried this, but it is not working:
$tableName = $db->getOne('SELECT collection, ".'/'.", color AS collection FROM item_series WHERE series = ?', array($series['marriage_1']));
}else{
$tableName = $series['marriage_1'];}
Please help I have looked for an answer to this for hours!