You are here: Re: HOW TO GET HOW MANY RECORDS YOU HAVE IN DB « PHP Programming Language « IT news, forums, messages
Re: HOW TO GET HOW MANY RECORDS YOU HAVE IN DB

Posted by Michael Austin on 10/22/76 11:40

auron wrote:

> Hi,
> I finally discover the way how to get what I need.
>
> Let's look to my code:
>
> ----------------------- CODE ------------------------>
>
> $res = @mysql_query("SELECT COUNT(*) AS ToT FROM table_name");
> $dato = mysql_fetch_array($res);
>
> echo($dato[ToT]);
> ----------------------- CODE ------------------------>
>
> With this code you will get how much records do you have in DB.
>
> PS:
> Whan you think that everything is over and that you are at bottom of
> trying push harder to see what is under.
>
> Auron
> http://eye.cc php newsgroups

you should reply to your original post rather than starting a new thread!

 

Navigation:

[Reply to this 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

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