Codi
Codi

Reputation: 438

Changing statement causes lose of data

I need to change my echo statement below from

this

php part

<?php
  $results = $GameQ->process();
?>

html part

<tr class="active">
 <td><?php echo $results[$ID]['gq_hostname']; ?></td>
</tr>

to this

$results = $GameQ->process();   
 echo '<tr>
        <td>'.$ID.'["gq_hostname"]</td>
       </tr>';

The very first php and html part uptop works great what I am trying to change it to does not.

Upvotes: 0

Views: 43

Answers (1)

Anatol Bivol
Anatol Bivol

Reputation: 983

Change your code to :

$results = $GameQ->process();   
echo '<tr>
    <td>'.$results[$ID]["gq_hostname"].'</td>
    </tr>';

Upvotes: 1

Related Questions