Welcome Guest, Not a member yet? Register   Sign In
Using MySQL user-defined variables with database class
#6

[eluser]EBS Promo[/eluser]
Look at it this way, you are doing an update with a single MySQL query instead of loading each record and updating them one at a time in a PHP loop.

I'm not sure about your experiences, but I have never seen it take less resources to do it your way. In case you misundertsand the code reference... no PHP loops are used, only 1 MySQL variable and a single query is necessary.

I have always been of the persuasion to use your database engine to it's full potential. Using PHP to do what the db driver can already do with simple commands is overkill.


Messages In This Thread
Using MySQL user-defined variables with database class - by El Forum - 04-19-2010, 01:39 PM
Using MySQL user-defined variables with database class - by El Forum - 04-19-2010, 01:58 PM
Using MySQL user-defined variables with database class - by El Forum - 04-19-2010, 03:00 PM
Using MySQL user-defined variables with database class - by El Forum - 09-21-2010, 02:37 PM
Using MySQL user-defined variables with database class - by El Forum - 09-21-2010, 03:09 PM
Using MySQL user-defined variables with database class - by El Forum - 09-22-2010, 03:54 PM
Using MySQL user-defined variables with database class - by El Forum - 09-23-2010, 07:07 AM
Using MySQL user-defined variables with database class - by El Forum - 09-23-2010, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB