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>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to