Code : Tout sélectionner
$sqlphra = "SELECT numclient FROM client ORDER BY numclient DESC LIMIT 1";Merci
Code : Tout sélectionner
$sqlphra = "SELECT numclient FROM client ORDER BY numclient DESC LIMIT 1";
Code : Tout sélectionner
SELECT * FROM table LIMIT x,yCode : Tout sélectionner
SELECT MAX(champ) FROM table
Code : Tout sélectionner
$sqlphra = "SELECT MAX(numclient) FROM client";
$reponse = mysql_query($sqlphra) or die("Query failed");
while ($val = mysql_fetch_array($reponse))
{
$numclient = $val["numclient"];
$zz= $numclient+1;
echo "$numclient<br>";
}<?php
$sqlphra = "SELECT MAX(numclient) FROM client";
$reponse = mysql_query($sqlphra) or die("Query failed");
$numclient = mysql_result($reponse);
$zz= $numclient+1;
echo "$numclient<br>";
?>