We do it this way (code snippet)

...
$dbqueryline = mysql_db_query ($mredatabase,
   "select vorgang, bezeichnung 
   from mrebewkennz 
   order by vorgang", $dbhandle);
if (mysql_errno() != 0)
{
   echo mysql_error(); echo "\n";
}
else
{
   $bewkenznzahl = mysql_num_rows($dbqueryline);
   print "$bewkenznzahl Bewegungskennzeichen\n";
}

Bartek Pawlik wrote:
> ...snipp...
> >
> > I normally do something like:
> >
> > $sql = "SELECT something FROM table";
> > $result = mysql_query($sql);
> > if(@mysql_num_rows($result) > 0) {
> > echo'Query Suceeded';
> > } else {
> > echo'Query failed';
> > }
...snipp...

-- 
    Hans-Werner Guth      S     http://www.qits.de
         QITS GmbH      T     mailto:[EMAIL PROTECTED]
    Formerstr 53      I     fon +49-2102-852-145
40878 Ratingen      Q     fax +49-2102-852-202

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to