Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Count Total Input Field

Javascript coding ..

Moderators: macek, egami, gesf

Count Total Input Field

Postby patna_in » Wed Oct 12, 2005 9:23 am

Hi, I'm using javascript to add rows to a table. But after adding more rows how can i detect how many rows now & send by submit the form ??? Plz help ....
patna_in
New php-forum User
New php-forum User
 
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am

Postby php-vikas » Wed Oct 12, 2005 9:45 am

Hi Mr. Patna,

I think no one is able to understand your question. Please be specific about your question and put it again.
php-vikas
New php-forum User
New php-forum User
 
Posts: 164
Joined: Mon Apr 14, 2003 12:25 am
Location: India

Postby Alexej Kubarev » Wed Oct 12, 2005 1:11 pm

patna_in: please do not double post.. i know you have a difficult question to define to only one forum.. bu i suggest you choose ONE and if its the wrong one: we will simply move it :)
I will lock this topic and suggest you go to another post in http://www.php-forum.com/p/viewtopic.7166.html

But gime more information.. Vikas: you are not really correct there.. i think i know exactly the task and what patna_in needs... but i need more info to be 100% sure

And one more thing, just for fun: NEVER be sure that a user is of the sex you think he/she is before you saw an image or asked/noticed/been told :D
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby gesf » Thu Oct 13, 2005 12:43 am

That's it. Alexei got the answer. MySQL's COUNT() function.
If you want to know instantly how many fields were affected by an inserted/updated/deleted statement, use MySQL's ROW_COUNT().
User avatar
gesf
Moderator
Moderator
 
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby Alexej Kubarev » Thu Oct 13, 2005 1:22 am

Öhh... i think we were talking about HTML rows: and thefore this has been confused with Javascript problem.. but what i love about PHP: you have count in both php and mysql ;)
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby patna_in » Thu Oct 13, 2005 10:58 am

gesf,
I think u don't understand my problem. I know the count function & uses too. But I want to know the (HTML/JS as any 1 can say) row added to the table b4 submit the data. I think u understand the question if not then tell me, I'll give u a better description.
patna_in
New php-forum User
New php-forum User
 
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am

Postby Alexej Kubarev » Thu Oct 13, 2005 11:03 am

I forgot to lock this topic: it has been fixed now..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län


Return to JavaScript

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.