ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using EE Variables in PHP

December 03, 2011 1:36am

Subscribe [2]
  • #1 / Dec 03, 2011 1:36am

    @nnette

    109 posts

    I’m trying to use an EE variable within PHP and am getting errors… What am I doing wrong?


    <pre><code><?php
    //call user table here

    $mysql_query=“SELECT `es_onhand`, `es_bank` FROM `glo_userfields` WHERE `usr_useridnum` = {logged_in_member_id};

    .....BLAH BALH BLAH REST OF CODE…</code></pre>

    PHP setting is enabled and selected to “OUTPUT”.  Putting EE tag in quotes gives me an error as well.

    It isn’t parsing the EE tag at all.

    Thanks in advance!

  • #2 / Dec 03, 2011 6:13am

    @nnette

    109 posts

    This thread is related to THIS ONE:

    http://ellislab.com/forums/viewthread/205831/

    And has been resolved. Thanks!

  • #3 / Dec 04, 2011 1:02pm

    Sean C. Smith

    3818 posts

    Hi @nnette,

    Happy to see you got that resolved. Let me know if there is anything else I can do to help.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases