Jump to content

[SOLVED] how to add a checkbox after a field that has been called


berry05

Recommended Posts

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 !  :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.