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
AliasBDI
Forum Contributor
Posts: 286 Joined: Fri Nov 15, 2002 10:35 am
Location: Spring, TX, USA
Post
by AliasBDI » Sat Sep 04, 2004 3:04 pm
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 » Sat Sep 04, 2004 3:24 pm
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 » Sat Sep 04, 2004 3:42 pm
Got it. Thanks. Works perfect. I just thought the quotes had to be there. Thanks.