Hi Evert, try: echo mysql_result($result,0,0), "\n"; echo mysql_result($result,0,1); You forgot a zero... Regards, Sigrid "Evert Meulie" <evert@xxxxxxxxxxxx> schrieb im Newsbeitrag news:0tn703-4df.ln1@xxxxxxxxxxxxxxx > Hi all! > > I'm taking my first steps with PHP & MySQL. > > Can anyone give me a hint on why this would not work? > > ********************* > > $result = mysql_query('SELECT SUM(AcctInputOctets), SUM(AcctOutputOctets) FROM radacct WHERE username = $argv[1] '); > echo mysql_result($result,0), "\n"; > echo mysql_result($result,0,1); > > ********************* > > > I get: Warning: mysql_result(): supplied argument is not a valid MySQL result resource > > > > Regards, > Evert -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php