im trying to get a data from database into a text field:
$fothersq=("SELECT others FROM january");
$fothers=mysql_query($fothersq);
<input type="text" placeholder="0" name="febothers" size="11" value="<?php if(@$fothers){echo htmlentities(@$fothers);} ?>">
but i got this error in the text field instead.
<br /><b>Warning</b>: htmlentities() expects parameter 1 to be string, resource given in <b>C:\xampp\htdocs\CashFlow\febprev.php</b> on line <b>116</b><br />
also in another text field i use this coding just to test:
<input type="text" name="febbonus" size="11" placeholder="0" value="<?php if(@$fbonus){echo (@$fbonus);} ?>">
and i got this error:
Resource id #7
any ideas?