Posts by Leonardo Patricio • 1,656 points
54 posts
- 
		3 votes4 answers9073 viewsA: What is the difference between using . js and .min.js files?The file.min.js, has the same information as the other, but in a minified way, what? To avoid loading heavy java script or css files to the page, in the minifier(min file) tabs, blank spaces are… 
- 
		9 votes1 answer3804 viewsA: How to select categories and count the number of products in each category?Instead of INNER JOIN with the product table do LEFT JOIN: SELECT t1.id,t1.nome,t1.imagem,COUNT(t2.*) AS Quantidade_produtos FROM categorias_produtos AS t1 LEFT JOIN produtos AS t2 ON t2.ref=t1.id… 
- 
		1 votes3 answers1225 viewsA: Mysql Transaction When? How? Why?Yeah, the other one gets access to the comic, what has to be done before you remove the product from stock you have to make a check if there is still available quantity of product x in stock just… 
- 
		2 votes2 answers4223 viewsQ: Dynamically create PHP class instance with Namespace$class = ucfirst(strtolower($_GET['type'])) . "Controller"; include $class . ".php"; $item = new $class(); But I put the class name without being dynamically, for example: $item = new…