Variable popup avec condition
nox
-
bbar Messages postés 436 Statut Membre -
bbar Messages postés 436 Statut Membre -
Bonjour,
j'ai besoin d'aide.
j'ai un fichier p1.php qui affiche l'identité par categorie.
L'affichage contient aussi un boutton voir (en popup) qui affichera tous les elements concernants
cette identié.
Le problème c'est que le 2èm fichier qui est popup n'arrive pas à prendre l'identité.
voici le 1er fichier:
...
$r=mysql_db_query("base",'select date,id_dmd,count(id_dmd),responsable from demande group by id_dmd ');
while($sol=mysql_fetch_array($r))
{ $da=$sol[0];
$id=$sol[1];
$qt=$sol[2];
$rp=$sol[3];
?>
<tr><td align="center"><font size="-1"><? echo $da?></font></td>
<td align="center"><font size="-1"><? echo $id?></font></td>
<td align="center"><font size="-1"><? echo $qt?></font></td>
<td align="center"><font size="-1"><? echo $rp?></font></td>
<?
$x=$id;
echo "<form name=f1 method=get>";
echo "<input type=hidden name=t1 value=$x>";
echo "</form>";
echo "<td><center> <input type=submit value=voir onClick=miseho()></center></td>";
echo "</tr>";
}
?> </table> <?
}
...
et mon 2nd fichier qui est popup
<?php
$v=$_GET['x'];
mysql_connect("localhost","root","")or die("apache abs");
mysql_select_db("base")or die("base abs");
$r=mysql_db_query("base",'select date,id_dmd,nomenclature,designation,quantite from demande where id_dmd= UCASE("'.$v.'")' );
...
?>
ou bien c'est ma requête WHERE qui est fausse?
Aidez-moi!!
j'ai besoin d'aide.
j'ai un fichier p1.php qui affiche l'identité par categorie.
L'affichage contient aussi un boutton voir (en popup) qui affichera tous les elements concernants
cette identié.
Le problème c'est que le 2èm fichier qui est popup n'arrive pas à prendre l'identité.
voici le 1er fichier:
...
$r=mysql_db_query("base",'select date,id_dmd,count(id_dmd),responsable from demande group by id_dmd ');
while($sol=mysql_fetch_array($r))
{ $da=$sol[0];
$id=$sol[1];
$qt=$sol[2];
$rp=$sol[3];
?>
<tr><td align="center"><font size="-1"><? echo $da?></font></td>
<td align="center"><font size="-1"><? echo $id?></font></td>
<td align="center"><font size="-1"><? echo $qt?></font></td>
<td align="center"><font size="-1"><? echo $rp?></font></td>
<?
$x=$id;
echo "<form name=f1 method=get>";
echo "<input type=hidden name=t1 value=$x>";
echo "</form>";
echo "<td><center> <input type=submit value=voir onClick=miseho()></center></td>";
echo "</tr>";
}
?> </table> <?
}
...
et mon 2nd fichier qui est popup
<?php
$v=$_GET['x'];
mysql_connect("localhost","root","")or die("apache abs");
mysql_select_db("base")or die("base abs");
$r=mysql_db_query("base",'select date,id_dmd,nomenclature,designation,quantite from demande where id_dmd= UCASE("'.$v.'")' );
...
?>
ou bien c'est ma requête WHERE qui est fausse?
Aidez-moi!!
A voir également:
- Variable popup avec condition
- Excel cellule couleur si condition texte - Guide
- Fake mcafee popup - Accueil - Piratage
- Vba range avec variable ✓ - Forum VB / VBA
- Excel condition ou - Guide
- Vba excel sélectionner une plage de cellules variable ✓ - Forum VB / VBA