Bug #15434: unterminated string constant

From: Date: Thu, 07 Feb 2002 20:52:13 +0000
Subject: Bug #15434: unterminated string constant
Groups: php.dev 
Request: Send a blank email to php-dev+get-79575@lists.php.net to get a copy of this message
From: wborter@aem-east.com Operating system: Windows 2000 PHP version: 4.1.1 PHP Bug Type: Output Control Bug description: unterminated string constant while($row=mysql_fetch_array($result)) { $swlicnum = $row["swlicnum"]; $swdes = $row["swdes"]; $swlicid = $row["swlicid"]; $query2 = "select count(*) from software where swdes = '".$swdes."'"; $result2=mysql_query($query2); $liccount = mysql_result($result2, 0, 0); if($swlicnum!=$liccount) { $table_block .= "<tr><td><span class='block' STYLE='cursor:hand'><p onclick=swliccpulist(\"$swdes\")>$swdes</p></span></td><td>$swlicnum</td><td>$liccount</td></tr>"; } else { $table_block .= "<tr><td><span class='block' STYLE='cursor:hand'><p onclick=swliccpulist(\"$swdes\")>$swdes</p></span></td><td>$swlicnum</td><td>$liccount</td></tr>"; } } /////////////////////////////////////// When generating the table if swdes = WINDOWS 2000 I get a unterminiated string constant If I change the field to swdes = WINDOWS aaaa it works fine -- Edit bug report at http://bugs.php.net/?id=15434&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15434&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15434&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15434&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15434&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15434&r=support Expected behavior: http://bugs.php.net/fix.php?id=15434&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15434&r=notenoughinfo

« previous php.dev (#79575) next »