View Single Post
  #5  
Old 01-07-2004, 19:40
bastien's Avatar
bastien bastien is offline
Modérateur
 
Join Date: 25-10-2002
Location: Toulouse
Age: 42
Posts: 229
Send a message via MSN to bastien Send a message via Skype™ to bastien
Re: Compter des lignes dans une table !

Alors avec la soluce de Spycam j'ai droit à:

Code:
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in D:\sites\dev\autodif\v_occaz.inc.php on line 9
voiture(s)
Soit
PHP Code:
$voiture=mysql_num_fields($result); 
Et pour Benjy,

Code:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in D:\sites\dev\autodif\v_occaz.inc.php on line 11
Soit
PHP Code:
echo $occaz['total']" .  voiture(s)"
Donc j'ai mis
PHP Code:
echo $occaz['total']."   voiture(s)"
Mais là
Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\sites\dev\autodif\v_occaz.inc.php on line 8

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in D:\sites\dev\autodif\v_occaz.inc.php on line 9
voiture(s)
Soit
PHP Code:
$occaz mysql_fetch_array($result); 
mysql_free_result($result); 
help !
__________________

Last edited by zyk; 01-07-2004 at 19:44. Reason: Correction d'un code
Reply With Quote