Everytime we connect to demcat.php, the soft tells us that there is an internal error.
But when we put the script code of demcat.php into the nokia editor, it works.
Please find enclosed the two WAP-pages.

The index.wml :
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>

<!-- Possible <head> elements here. -->

<card id="card1" title="Devis pro">
<p>Bonjour<br/>Que voulez-vous faire?
<a href="#card2">Recherche</a></p>
</card>

<card id="card2" title="Devis pro">
<p><a href="#card3">Recherche par nom</a>
<a href="demcat.php">Recherche par catgorie</a>
</p>
</card>

<card id="card3" title="Devis pro">
<p>Donnez le nom du produit que vous recherchez :
<br/><input type="text" title="produit rechercher" name="produit"/>
<br/>rechercher
</p>
</card>

<card id="card4" title="Devis pro">
<p><u>Les catgories:</u>
<a href="#card3">Recherche </a>
<a href="#card4">Recherche </a>
</p>
</card>

</wml>


The demcat.php
<?
// header("Content-Type : text/vnd.wap.wml"
echo("<?xml version=\"1.0\"?>\n"
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"\n \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n"
echo("<wml>\n"
echo('<card id="card1" title="Devis pro">');
echo("\n"
echo('<p>');
include("conf/conf.inc.php"
include ("conf/connect.inc.php"


$query = "SELECT * FROM $table_c ORDER BY nom"; //DESC inverse
$result = mysql_query($query);
$nb = mysql_numrows($result);
$row=0;
while ($row < $nb)
{
$num_c = mysql_result($result,$row,"id"
$nom_c = mysql_result($result,$row,"nom"
?>

<a href="affiche_c.php?cat=<?=$num_c?>"><?=$nom_c?></a>

<?
$row++;
}
echo("\n"
echo("</p>"echo("\n"
echo('</card>');echo("\n"
mysql_free_result($result); //librer la mmoire du sevrer d a la boucle lourde
mysql_close();?></wml>