Forums

Mixing PHP and HTML (2 posts)

  1. josephmo
    Member
    Posted 2 years ago #

    OK, so I'm a newbie to both, and I have the following piece of code in a PHP template.

    <div class="attendee"><img src=<?php $photo; ?> alt="" /><?php $Name; ?>
    On Site: ><?php $tID ?>
    On the Web: ><?php $pURL ?>
    Title: <?php $title ?>
    Organization: <?php $cpny ?></div>

    Here's the output:

    On Site: On the Web: Title: Organization:

    and I can see a square at the beginning of the line (before On Site), telling me that the variable $photo is being picked up, but not the other variables. Any ideas?

    --thx

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try <?php echo $Name; ?> and <?php echo $tID ?> etc?

Topic Closed

This topic has been closed to new replies.

About this Topic