MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 2nd, 2002, 11:43 AM
buddah buddah is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Svizzera
Posts: 69 buddah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 8
limit 1040 entries, why?

i only can insert 1040 entries!
is that a php or a mySQL problem, and it's possible to solve it (how)

cheers

Reply With Quote
  #2  
Old January 2nd, 2002, 06:00 PM
wknight wknight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 4 wknight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hello

you mean
1) 1040 rows in a table
2) 1040 chars in a field?

if you mean (1) ,,, then , are you tring to insert them all at one time ( if this is the case , it is because of the execution time limt by PHP ) anyway it is not a good idea .

if you mean (2) what type is the field ?
I can't figure out a type which limits only 1040 , CHAR + VARCHAR are 255 , and TINYTEXT is 255 , TEXT is 65535

Could you please give us more info about this ?

good luck .

Reply With Quote
  #3  
Old January 3rd, 2002, 05:35 AM
buddah buddah is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Svizzera
Posts: 69 buddah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 8
1040 raws in a table why?

i have a loop which i insert more then 2000 raws in a table, after every insert i use "set_time_limit(30000); ", the problem is that the script works and works on, without a sign.
I wanna stop the script for a moment to send a request that is still working.

when i brows it localy it works, just over the internet doesn't work

thx

Reply With Quote
  #4  
Old January 3rd, 2002, 07:39 AM
jdk's Avatar
jdk jdk is offline
phpkid ~~~~~~ :o)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,535 jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 11
Send a message via Yahoo to jdk
Why you need to set time limit in a loop ?

Set it at the beginning of script and thats it.

Quote:
I wanna stop the script for a moment to send a request that is still working.


I really dont know what you are trying to achieve here.

JD
__________________
_____________________________
d.k.jariwala (JD)
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org

Reply With Quote
  #5  
Old January 3rd, 2002, 08:00 AM
wknight wknight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 4 wknight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello ,

do as JD said ,

one more thing ,, I really recomend that , instead of increasing the time limit and pump all the 2000 rows stratight to mysql

set a number of records for every loop , use echo to write a java script to refresh the page - and to tell you that the script is still working - with ( last id ) and start over ,
make sure that your code checks for the number of records .

this way is better , although I think you should use perl as shell script to do this

good luck .

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > limit 1040 entries, why?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT