I was wondering if it's possible to have a stable query for inserting or retrieving 100 pieces of information from the database without crashing or timeout. Thanks.
is it possible it to time out easily? I need to write this thing extremely stable. just with mysql_query("INSERT INTO") and it will do it? and to retriveve the info with a loop?
If you are using mySQL, add "limit 100" to the end of a query to only get the first 100 back. Try not to put a query inside a loop, you will beat your database to death - if you have to do this for a bunch of inserts, then you need to decide if it is an all or nothing. If it is an all or nothing, make sure to wrap the whole loop into a transaction, so that if it fails, all the inserts get rolled back and you don't end up with junk in the DB.