php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3782 parse error -double quote in echo()
Submitted: 2000-03-09 08:07 UTC Modified: 2000-03-17 05:48 UTC
From: kochin at soback dot kornet dot net Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0 Beta 3 OS: redhat 6.1
Private report: No CVE-ID: None
 [2000-03-09 08:07 UTC] kochin at soback dot kornet dot net
thank you very much

then I meet the problem of parse error.
that is, how use a double quote in echo()?

____329_
____330_echo_('<A_href="./view.html?id=$row[id]&code=$code&start=$start">$row[ti
tle]');

.....

____348_echo("</FONT></A></TD>
____349_
____350_        <TD_align='center'_width='46'><FONT_size='2'_color=black>$row["count"] </FONT></TD>
____351_
____352_        <TD_align='center'_width='74'><P><FONT_size='2'_color=black>$row[3] </FONT></TD>
____353_
____354_        <TD_align='center'_width='76'><P>");
____355_
____356_if($row["mail"])
____357_   {echo("<A_href='mailto:$row["mail"]'><FONT_size='2'_color='darkblue'>
$row["name"]</FONT></A></TD>");
____358_   }
____359_ else
____360_   {echo("<FONT_size='2'_color='darkblue'>$row["name"]</FONT></TD>");
____361_   }
____362_
____363_   echo("<TD_align='center'_width='40'><P><FONT_size='2'_color=black>$ro
w["hits"] </FONT></TD></tr>");
____364_
____365_    $n--;
____366_
 
 ......
 
in manual, i read to use 'backslash(\)'
but in my homepage, there is the same problem.
parse error

i don't know how do i do?

please explain the example.
or teach the reference site.
 
 
 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-17 05:48 UTC] andi at cvs dot php dot net
Please send this question to the php3 or php4beta list. Also I advise you to isolate the problem and format the question a bit better because I couldn't figure out what's happening with all those weird underscores and line numbers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC