Page 1 of 1

[SOLVED] Simple Question

Posted: Sat Sep 04, 2004 3:04 pm
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.

Posted: Sat Sep 04, 2004 3:24 pm
by qads

Code: Select all

<?php
echo $row_mediaDESKTOPS[$size];
?>

Posted: Sat Sep 04, 2004 3:42 pm
by AliasBDI
Got it. Thanks. Works perfect. I just thought the quotes had to be there. Thanks.