Posted: Wed Dec 11, 2002 1:34 am
while(cond) ; { ... } unfortunatly does not produce a warning but it means: an empty loop-body followed by another code block (not related to the loop)while ($data = fgetcsv ($fp, 600, "~")); {
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
while(cond) ; { ... } unfortunatly does not produce a warning but it means: an empty loop-body followed by another code block (not related to the loop)while ($data = fgetcsv ($fp, 600, "~")); {
print('<a href="who_are_you.php3?person=' . urlencode($person) . '">Back to Who Are You?</a>');
Code: Select all
<?php
$part1 = '<a href="who_are_you.php3?person=';
$part2 = urlencode($person);
$part3 = '">Back to Who Are You?</a>';
$concat = $part1 . $part2 . $part3;
print($concat);
?>Oh my goodness--I see! One misplaced semi-colon. DUH!! I'm blind. Thank you!while(cond) ; { ... } unfortunatly does not produce a warning but it means: an empty loop-body followed by another code block (not related to the loop)
versus' . urlencode($person) . '
I didn't realize that the single quotes went with strings on either side, and not the urlencode call. What confused me was the double quotation marks within the single-quoted literals. I thought they were defining a string. I understand now that they are not.'urlencode($person)'