var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: IF statement in SQL Query
I'm not sure if this is possible, but its worth asking. I was wondering if it was possible to do something like this in mySQL (Im just making this up out of my head)
Please note the IF...THEN... statement.
SELECT f.*, IF(f.buyable, s.cost, '') as cost
FROM file as f
IF f.buyable THEN
LEFT JOIN subscription as s ON s.subscriptionid = f.subscriptionid
perhaps you could explain in words what you are trying to do?