berry05 Posted August 16, 2009 Share Posted August 16, 2009 how do i add a check box to a field that has been called onto the browser...i want to have a check box after each item that has been called but I've been looking around and cannot find anything on it ... Here's the code... <html> <body> <p><a href="index2.php">Index</a> | <a href="shop.php">Shop</a> | <a href="sell.php">Sell</a> | <a href="logout.php">Logout</a> </p> </p> <?php session_start(); if(isset($_SESSION['otherusername'])){ $db=mysql_connect('localhost', 'root', ''); $res=mysql_select_db('txtgame',$db) or die(mysql_error()); $otherusername = $_SESSION['otherusername']; //"SELECT item FROM users_items WHERE username='".$Username."'"; $res=mysql_query($otherusername)or die(mysql_error()); while($row = mysql_fetch_assoc($res)){ echo ' '.$row['item']."<BR />"; } }else{ echo "Sorry your not a member please join us!"; } ?> <br><input type="submit" value="sellitem"> </form> </body> </html> Thanks ! Link to comment https://forums.phpfreaks.com/topic/170543-solved-how-to-add-a-checkbox-after-a-field-that-has-been-called/ Share on other sites More sharing options...
berry05 Posted August 16, 2009 Author Share Posted August 16, 2009 fixed by the help of vishal !! thxs man ! Link to comment https://forums.phpfreaks.com/topic/170543-solved-how-to-add-a-checkbox-after-a-field-that-has-been-called/#findComment-899574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.