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
jarow
Forum Commoner
Posts: 83 Joined: Tue Jan 28, 2003 2:58 am
Post
by jarow » Fri May 30, 2003 7:24 am
Can´t figure out what is wrong with the following...it won´t print out any values.
Code: Select all
<?php
if ($row_rsdetail['syn'] != ""){echo "$row_rsdetail['syn'] <BR>\n"; }
if ($row_rsdetail['syn1'] != ""){echo "$row_rsdetail['syn1'] <BR>\n"; }
?>
Many thanks
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Fri May 30, 2003 7:47 am
Have you done:
Code: Select all
echo '<pre>';
print_r($row_rsdetail);
echo '</pre>';
to check values?
Mac
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Fri May 30, 2003 7:50 am
Ah, there is one major problem with your code, you can't do:
you can do:
or
or
Code: Select all
echo "{$array['key']} other text";
Mac
jarow
Forum Commoner
Posts: 83 Joined: Tue Jan 28, 2003 2:58 am
Post
by jarow » Sun Jun 01, 2003 10:41 am
thanks mac...once again your info has helped me alot