hello
i want display ( topic and author and date ) if user choose then click "save "
how can do that ?
this is my code:
<?php
$con=mysql_connect("localhost","root","");
if(!$con)
{
die('can not connect'.mysql_error());
}
mysql_select_db("scms", $con );
$result = mysql_query("select * from others");
$num = mysql_num_rows($result);
$row = mysql_fetch_array($result);
echo"<table border='1' width='100%' id='table1'>";
echo"<thead>
<tr> <th>#</th> <th>topic</th><th> author </th> <th>date</th>
</thead>";
echo"<tbody>";
$i=0;
while( $i < $num ) {
$id = mysql_result( $result , $i , "id" );
$topic = mysql_result( $result , $i , "topic" );
$author = mysql_result( $result , $i , "author" );
$date=mysql_result( $result , $i , "date" );
echo"<tr>";
?>
<form name="form1" method="post" action="show_others_0.php">
<td> <input name="radio" type="radio" id="radio" value="<?php echo $row['id']?>"> </td>
<?php
echo"<td width='20%'>$topic </td>";
echo"<td width='20%'>$author </td>";
echo"<td width='20%'> $date </td>";
echo"</tr>";
++$i;
}
echo"</tbody>";
echo"</table>";
?>
<input name="save" type="submit" id="save" value="save">
</form>
<?php
mysql_close($con);
?>
please help me
thanks alot