|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-07 21:55 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 17:00:01 2025 UTC |
<?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