Re: jacked up quotes
| From: | Darryl Friesen | Date: | Fri, 02 Mar 2001 17:09:22 +0000 |
| Subject: | Re: jacked up quotes | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7080@lists.php.net to get a copy of this message | ||
> printf ("<OPTION VALUE=\"%s\">%s</OPTION>",
> $row['client'],
$row['client']);
>
> print "<OPTION
VALUE=\"".$row['client']."\">".$row['client']."</OPTION>";
I've always found it easier NOT to use double quotes unless I have to;
avoids all those slashes and makes things easier to follow. Try:
print '<OPTION VALUE="' . $row['client'] . '">' .
$row['client'] .
'</OPTION>';
- Darryl
----------------------------------------------------------------------
Darryl Friesen, B.Sc., Programmer/Analyst Darryl.Friesen@usask.ca
Education & Research Technology Services, http://gollum.usask.ca/
Department of Computing Services,
University of Saskatchewan
----------------------------------------------------------------------
"Go not to the Elves for counsel, for they will say both no and yes"