Reply to count(*) query

Your name:

Reply:


Posted by twomt on 09/14/06 19:07

Hi,

am doing something wrong, for sure... I just fail to see it atm where
the failure is. Call me stupid :p

Someone have a look please

<?php

require 'inc/mysql.inc';
require 'inc/functions.inc';

$result = mysql_query ("SELECT count(*) FROM User", $connection);

echo ($result);

?>



The answer I get is Resource id#4 instead of 6 which is the number of
rows in the User table.

Thanks,
twomt.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация