• Hey,

    i would like to embed 2 different php scripts at one page. The first script contain mysql-Query. How can i use a part of the mysql-result in my second script?

    for example:

    [includeme file=”settings.php”]: This file get the settings “$color”, “$house”, “$name” from database. This file print also the variable $color,
    later at this wordpress-page i embend a script
    [includeme file=”owner.php”]: this file use the variables $house und $name from my first script “settings.php”.

    If i echo the variables $house and $name i do not get a result. Why?

    Thank you

    • This topic was modified 3 years, 6 months ago by konstantinm.

The topic ‘How use php-variable in different includes’ is closed to new replies.