ID: 15435 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows 2000 PHP Version: 4.1.1 New Comment:
The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Previous Comments: ------------------------------------------------------------------------ [2002-02-07 15:53:57] [EMAIL PROTECTED] <?php require("../code/dbconnect.php"); $query = "select swlicid,swdes,swlicnum from softwarelic order by swdes"; $result=mysql_query($query); 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(\"$swlicid\")>$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(\"$swlicid\")>$swdes</p></span></td><td>$swlicnum</td><td>$liccount</td></tr>"; } } mysql_close($link); ?> /////////////////////////////////////// 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 this bug report at http://bugs.php.net/?id=15435&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php