Mysql/php Connection, Config, Index, Query, buffers, nfi im
first of all, my main question:What are some good troubleshooting techniques when you run into a variable problem regarding slow database access.Background: I have a system that is handling multiple db...
View ArticlePHP Database Value Change Listener, is there a better way?
Our company deals with sales. We receive orders and our PHP application allows our CSRs to process these orders.There is a record in the database that is constantly changing depending on which order is...
View ArticleHow can I speed up this query?
I have code to generate four cars from a DB with their photos:$l=$database->query(“SELECT car,brand,exactprice FROM $table ORDER BY rand() LIMIT 4″);$buffer=”";foreach($l as $l){ $buffer.=”...
View ArticleMySQLi PHP Extension Problems
I am new to the MySQLi extension, and I have run into a problem. Whenever a query finishes executing, I know you should free the result. Here is a snippet of a class I built for running a simple query....
View ArticleExtend MySQLi Class to EXPLAIN SQL queries on page
how can I extend the MySQLi class to explain all SQL queries on a given page?Thanks. ……………………………………. There are several ways to do this. Here is one:To start, you can get an explanation by simply...
View ArticlePHP/MYSQL query help needed
This should be straightforward. I have three tables (relevant columns shown).users : ID,USERNAME,PWDshops: ID,MANAGER_ID (referencing a USER_ID),NETWORK_IDnetworks : ID,ADMIN_ID (referencing a...
View Article