1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?
// Connecxion au serveur mysql
$connect=mysql_connect('localhost','root','') or die ("Erreur de connexion avec le serveur Mysql.");
// Connexion a la base de donnée : Softlist
mysql_select_db('softlist',$connect) or die ("Erreur de connexion a la base de donnée.");
$select="SELECT * FROM `t_software`";
$resultat=mysql_query("$select;");
$rang=mysql_num_rows($resultat);
for ($i=0;$i<$rang;$i++)
{
$Software_id=mysql_result($resultat,$i,"Software_id");
$Software=mysql_result($resultat,$i,"Software");
$Description=mysql_result($resultat,$i,"Description");
echo"
<tr>
<td width=10%><center>".($i+1)."</center></td>
<td width=15%><center>".$Software."</center></td>
<td width=70%><center>".$Description."</center></td>
<td width=5%><center><input type=checkbox name=software_id[] value=".$Software_id."></center><br></td>
</tr>"
;}
?> |
Partager