Bonjour,
Qu'elqu'un peut-il me dire pourquoi j'ai ce problème ?
Quand je lance cette page ça marche :
<?
//include("include/connect.php");
$table="client";
$host="localhost";
$user="root";
$pass="";
$base="rsh";
$bdd=@mysql_connect($host,$user,$pass);
@mysql_select_db($base,$bdd);
$query="SELECT * FROM $table where nom LIKE 'a' and supprimer = '0' order by nom";
$res=mysql_query($query);
?>
... // code html
<? while($val=mysql_fetch_array($res,$bdd))
{
$code = $val['code'];
$nom = $val['nom']; ?>
... // code html
<? } ?>
par contre quand je fais ça :
<?
include("include/connect.php");
?>
... // code html
<? while($val=mysql_fetch_array($res,$bdd))
{
$code = $val['code'];
$nom = $val['nom']; ?>
... // code html
<? } ?>
où connect.php contient :
<?
$table="client";
$host="localhost";
$user="root";
$pass="";
$base="rsh";
$bdd=@mysql_connect($host,$user,$pass);
@mysql_select_db($base,$bdd);
$query="SELECT * FROM $table where nom LIKE 'a' and supprimer = '0' order by nom";
$res=mysql_query($query); ?>
Merci beaucoup de m'aider.
En quoi l'include nuit-il l'affichage de ma page.
Pour infos, les lignes sont bien incrémentées mais tout ce qui est texte ne s'affiche pas.