TalkTopics.com - Talk about everything on earth!

Go Back   TalkTopics.com > TalkTopics Community > Computers & Technology > Programmers' Lounge

Programmers' Lounge It's ok if the world out there don't understand your languages. Here the place for the great programmers around the world to start talking - in their very own unique languages.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 02-26-2007, 08:42 AM
samkhan's Avatar
samkhan samkhan is offline
Member
Friendizen
 
Join Date: Feb 2007
Posts: 67
samkhan is on a distinguished road
PHP row count

hi,
I am writing a query in my php code for getting some rows from database. I want to count record fetch by that query.

When i am trying to execute this query

select *, count(*) from mytable

then it shows error.

Can anyone suggest solution for this problem?
Reply With Quote
  #2 (permalink)  
Old 02-26-2007, 08:54 AM
samkhan's Avatar
samkhan samkhan is offline
Member
Friendizen
 
Join Date: Feb 2007
Posts: 67
samkhan is on a distinguished road
query

I also tried following query -

select * from mytable

and after that i was using odbc_num_rows($rs) to get record count.

But it is showing result -1 , instead of exact record count for the query.
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dr. imbert has attempted to count the number of stigmatics, hassen1 Philosopher's Lounge 1 01-07-2007 10:41 AM


All times are GMT +1. The time now is 10:41 PM.





Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6