<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Oi gente, eu queria saber qual a função do DBI para contar elementos no select?<BR>
&nbsp;<BR>
no momento estou usando:<BR>
&nbsp;<BR>
COUNT(*)<BR>
&nbsp;<BR>
ou<BR>
&nbsp;<BR><FONT size=2><FONT size=2>
<FONT color=#000000>my </FONT></FONT></FONT><FONT color=#000000><FONT size=2>$</FONT><FONT size=2><FONT size=2>num</FONT></FONT><FONT size=2> </FONT><FONT size=2><FONT size=2>= </FONT></FONT><FONT size=2>$</FONT><FONT size=2><FONT size=2>query</FONT></FONT><FONT size=2><FONT size=2>-&gt;</FONT></FONT><FONT size=2>execute</FONT><FONT size=2><FONT size=2>;</FONT></FONT></FONT><BR>
<FONT color=#000000></FONT>&nbsp;<BR>
<FONT color=#000000>scalar($num);</FONT><BR>
<FONT color=#000000></FONT>&nbsp;<BR>
<FONT color=#000000>eu pensei que $num-&gt;rows ia retornar, mais não aconteceu nada.</FONT><BR>
<FONT color=#000000></FONT>&nbsp;<BR>
<FONT color=#000000>Obrigado.</FONT><BR>
<FONT color=#000000></FONT>&nbsp;<BR>
<FONT color=#000000>Deus é o limite!</FONT><BR>
<FONT color=#b22200 size=2><FONT color=#b22200 size=2>&nbsp;<BR></FONT></FONT>                                               <br /><hr />SMS "HOTMAIL" naar 3010 en ontvang gratis de juiste instellingen voor  <a href='http://www.microsoft.com/netherlands/windowslive/Views/productdetail.aspx?product=HotmailTelefoon' target='_new'>Hotmail op je mobiele telefoon.</a></body>
</html>