|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here! |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I would suspect part of the problem is your foreach. Foreach is meant to loop through arrays, but you are trying to loop through a list.
try: $selected_cats = explode(",",$_POST['selected_cat']); foreach ($selected_cats as $levelc_lk) { |
|
||||
|
My guess is that your hogging the database and pulling too many queries...
Why not use the for loop to create the query you need. INSERT INTO (1,2,3) VALUES (1,2,3), (1,2,3), (1,2,3),(1,2,3), (1,2,3), (1,2,3),(1,2,3), (1,2,3), (1,2,3) I can't remember the syntax exactly... but you also have the option to INSERT DELAYED or with LOW PRIORITY... I am not sure which one will reduce the server load for your instance... but it's worth looking into... jmo... It would be my preference to record the entire action of the for loop in a single audit entry. Why audit a for loop? Why not audit the function?
__________________
James Weisbrod - programmer |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| On the Trail of the Long Tail | WPW_Feedbot | Search Engine Optimization Forum | 0 | 02-17-2005 12:00 PM |
| Enhance pay-per-click audit | iowasmiles | Search Engine Optimization Forum | 1 | 09-21-2004 08:20 PM |
| cardsremembered.com - SEO Review/Audit | goervin | Submit Your Site For Review | 2 | 07-25-2004 05:15 PM |
| Link Audit software? | rcmedia2004 | Google Discussion Forum | 0 | 06-17-2004 02:21 AM |
| Help Trail of Words!!!!!!!!!! | shawtyshygurl | Graphics & Design Discussion Forum | 2 | 01-14-2004 12:53 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |