Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

besoin d'aide en php mysql

Featured Replies

Posté(e)

voila j'utilise easy php 1,8

page client :

<html>

<head>

<link REL="stylesheet" TYPE="text/css" HREF="Aidinfo.css">

</head>

<body bgcolor=#c8c8c8>

<h2><b><center>Nouveau Client</center></b></h2>

<form method=POST action="enrcli.php" >

<table border="0" width="100%">

<tr><td width="50%" align="right" valign="top"><b>Téléphone : </b></td>

<td width="50%"><input type="text" name="tel" size="14" maxlength="14"><br><br></td></tr>

<tr><td width="50%" align="right" valign="top"><b>E-Mail : </b></td>

<td width="50%"><input type="text" name="mail" size="60" maxlength="250"><br><br></td></tr>

<tr><td width="50%" align="right" valign="top"><b>Nom : </b></td>

<td width="50%"><input type="text" name="nom" size="60" maxlength="250"><br><br></td></tr>

<tr><td width="50%" align="right" valign="top"><b>Prénom : </b></td>

<td width="50%"><input type="text" name="pren" size="60" maxlength="250"><br><br></td></tr>

<tr><td width="50%" align="right" valign="top"><b>ad1 : </b></td>

<td width="50%"><input type="text" name="ad1" size="60" maxlength="250"><br><br></td></tr>

<tr><td width="50%" align="right" valign="top"><b>ad2 : </b></td>

<td width="50%"><input type="text" name="ad2" size="60" maxlength="250"><br><br></td></tr>

<tr><td width="50%" align="right" valign="top"><b>Observation : </b></td>

<td width="50%"><input type="text" name="obs" size="60" maxlength="250"><br><br></td></tr>

</table><br>

<center><input type="submit" value="Enregistrer"></center>

</form>

</html>

page enrcli.php :

<?php

// Initialisation des variables de connexion

$host = 'localhost';

$user = 'adm';

$bdd = 'aidinfo';

$passwd = 'duke';

// Connexion au serveur de BDD

mysql_connect($host, $user,$passwd) or die("erreur de connexion au serveur");

mysql_select_db($bdd) or die("erreur de connexion a la base de donnees");

// Récupération des données

$query = "INERT INTO Client VALUES ('$tel','$mail','$nom','$pren','$ad1','$ad2','$obs')";

echo $query

$result = mysql_query($query);

mysql_close();

?>

Voila le pb je ne récupère pas mes données saisie sur mon formulaire j'ai juste des blanc Que Faire????????????

mer d'avance

Posté(e)
  • Auteur

merci pour le inert c une erreur de débutant je ne ferai plus la fete avant de prog

cpdt j'avis un autre pb avec ce code que j'ai résolu

merci qd meme

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.