ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-france
php-france
[php-france] Lecture des enregistrements
by David GARYGA other posts by this author
Dec 30 2001 12:18AM messages near this date
Re: [php-france] pagaination | [php-france] [HS] Latex et euros
Bonjour,

Voilà mon problème ;
J'ai une table (sondage) qui contient des enregistrements (Id,Nom,Prenom)...
Je veux lire, dans une page (Sondage_r.php3), les champs (Nom,Prenom) en
fonction d'une valeur (Valeur) saisie dans la page...
J'écris :
<?
$instruction="SELECT * from sondage where Id =$Valeur ";
include ("Appel.php3");     variables de connection
$link = mysql_connect($serveur,$login,$pass);
$requete=mysql_db_query($base,$instruction,$link);
$erreur=mysql_error();
mysql_close($link);

echo "$erreur";          ne retourne aucune erreur !
?> 
puis :
<TABLE > 
  <FORM method="post" action="Sondage_r.php3"> 
  <INPUT type="text" name="Valeur" maxlength="3" size="4"> 
  <INPUT type="submit" name="Submit" value="Valider"> 
  <TR> <TD><? echo "$Nom $Prenom"; ?></TD></TR>
  </FORM> 
</TABLE> 

-----------------
David GARYGA

 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif




-- 
Avant toute question, lisez la FAQ: http://www.manucorp.com/faq.html
Pour vous désabonner envoyez un mail à php-france-unsubscribe@[...].org
Pour toutes les commandes envoyez un mail à sympa@[...].org avec HELP

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved