I have a list of tickboxes named "model" with different values genreated from mysql DB. When I tick 3 of them the script below below only bring the information of the last model ticked. how do I get the 3 ticked items to display at once. You urgent help is much appreciated.
Code:
<?php
$self = $_SERVER['PHP_SELF'];
$Model = $_POST['Model'];
if ( $Model );
{
$conn= mysql_connect('localhost,'user','cpass') or die( "could not CONNECT scotty" );
$rs = mysql_select_db( "db name", $conn ) or die ( "no database" );
$sql= "SELECT * FROM handsets WHERE Model = '$Model'";
$rs= mysql_query( $sql, $conn ) or die( "could not do SELECT" );
while ( $row = mysql_fetch_assoc( $rs ))
{
?>
Comment