Wrox Programmer Forums
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 14th, 2005, 06:13 AM
Friend of Wrox
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default How many Result?

Current code:

$query = "SELECT * FROM Table_Article WHERE Article_Subject LIKE '$RecallSubject' ORDER BY Article_Date";
  $result = mysql_query($query)
       or die ("Problem encounter ".mysql_error());
  while ($row = mysql_fetch_array($result))

How do I get the amount of lines without extracting all the rows (ie time saving!)

Thank you :)

Old April 15th, 2005, 03:37 PM
Authorized User
Join Date: Jan 2005
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts


Never bother to learn something not knowing which does not do you any harm, and never neglect to learn something whose negligence will increase your ignorance - Imam Jafar Sadeq

Similar Threads
Thread Thread Starter Forum Replies Last Post
Result of Transformation PKHG BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 4 August 6th, 2008 10:57 AM
Search Result batott ASP.NET 2.0 Professional 1 June 5th, 2008 08:39 AM
GridView and SQL More than one result = one result DarkForce ASP.NET 2.0 Basics 0 July 20th, 2007 04:29 AM
keyword doesn't appear with result gilgalbiblewheel Classic ASP Databases 2 January 11th, 2005 12:45 AM
Result set jemacc SQL Server 2000 0 December 19th, 2003 07:26 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.