[SOLVED] Simple Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AliasBDI
Forum Contributor
Posts: 286
Joined: Fri Nov 15, 2002 10:35 am
Location: Spring, TX, USA

[SOLVED] Simple Question

Post by AliasBDI »

I am having a problem with this code:

Code: Select all

<?php echo $row_mediaDESKTOPS['$size']; ?>
Is there another way to do this? I want the echoed field to be a variable based on what is passed via URL.
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

Code: Select all

<?php
echo $row_mediaDESKTOPS[$size];
?>
AliasBDI
Forum Contributor
Posts: 286
Joined: Fri Nov 15, 2002 10:35 am
Location: Spring, TX, USA

Post by AliasBDI »

Got it. Thanks. Works perfect. I just thought the quotes had to be there. Thanks.
Post Reply