Pass variable into purehtml

(2 posts) (1 voice)

Tags:

No tags yet.

  1. elb98rm, Member

    How do you pass a variable into purehtml?

    select 'dbr.purehtml', '<div id="' [mysql variable needs to be here] '">';

    Obviously - the var to be replaced would be inside []

    Thanks
    Rick

  2. elb98rm, Member

    I worked this out:

    You can wrap items in CONCAT().

    So:

    'dbr.purehtml', CONCAT('<div id="',[mysql variable needs to be here],'">');


Reply

You must log in to post.