Re: PHP 4.3.2, HTML and MSSQL2000
| From: | pete M | Date: | Fri, 07 Nov 2003 15:12:48 +0000 |
| Subject: | Re: PHP 4.3.2, HTML and MSSQL2000 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168855@lists.php.net to get a copy of this message | ||
echo "<input type='text' name='reportnum' size='20' value='$reportnum'>";
Rique Gresham wrote:
Hi All, I'm having trouble with a input box disappearing when using php to generate the input box. I tested this script in a test.htm and worked fine. Does it have something to do with the script being inside the <div></div> statement? Any help would be appreciated. Thanks <div id="Oobj220" style="position:absolute;z-index:74;visibility:visible; left:612px;top:96px;width:110px;height:21px;"> <span id="Ggeo201" class="dfltt"> <?php $link = mssql_connect("server") or die ("Not Connected"); $db = mssql_select_db("database")or die ("Unable to connect to database"); $sql= "SELECT CId, ReportNum FROM tblCounter WHERE CId = 1"; $sql_result= mssql_query($sql,$link) or die ("Query not executed"); function RepInc(&$reportnum) { $reportnum += 1; } while ($row = mssql_fetch_array($sql_result)) { $cid = $row["CId"];$reportnum = $row["ReportNum"]; } RepInc($reportnum); echo "<input type=text name=reportnum size=20 value=$reportnum>"; mssql_free_result($sql_result); mssql_close($link); ?> </span> </div>