![]() |
|
||
|
|
|
||
|
|
|||
|
|
|||||||
| Notices |
| Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here. |

![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | ||
|
Members
Join Date: Mar 2004
Posts: 42
|
Quote:
with the variable names changed to protect the cluless: $query = "SELECT name, subject, message FROM contact"; while($i < $max) { $result = mysql_query(SELECT thing, thang, thung from stuff WHERE id=$i); $row = mysql_fetch_array($result, MYSQL_ASSOC); echo "Name :{$row['thing']} " . "Subject : {$row['thang']} " . "Message : {$row['thung']} "; } Umm, excuse me Mr. "programmer", wouldn't that run 500 times faster if you did the query once instead of 500 times?: $result = mysql_query(SELECT thing, thang, thung from stuff WHERE id < $max); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "Name :{$row['thing']} " . "Subject : {$row['thang']} " . "Message : {$row['thung']} "; } and you know none of the tables have any indexes. Quote:
of them suggests "let's add another pointless proxy web server onto this machine" the other will reply "how about commenting out the 85% of crap we're currently running but not using instead". Competence doesn't seem to be any more common in the hosting industry than in so many others. Sure there a few knowledgeable people, but we regularly spend significant time educating hosts on the basics.
__________________
Ray Morris support AT bettercgi.com Strongbox - The next generation in site security Throttlebox - The next generation in intelligent bandwidth control Clonebox - Backup (disaster recovery) on steroids Make money with your sig |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|