Salut a tous, je m'arrache les cheveux sur un truc super simple

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$query=mysql_query("select id, acces_webmail, acces_ticket, acces_facture from client where login='$logstr' and password='$pswstr' and valide='Y'");
$data = mysql_fetch_array($query);
 
$query2=mysql_query("select id, webmail, ticket, facture from collaborateur where login='$logstr' and password='$pswstr' and valide='Y' ");
$data2 = mysql_fetch_array($query2);
 
 
if($data[0]=='' || $data2[0]=='')
{  
 
echo "<span class='rougeG'>";
		echo "Login ou Password incorrect. Merci de vous identifier
		echo "</span>";
		$ok ="0";
 
}else{
Ne fonctionne pas et un echo des variables me prouve bien que les variables sont bonnes, alors la c'est un mystere

Merci de votre aide