Posts by Douglas Laiber • 103 points
4 posts
- 
		0 votes2 answers52 viewsA: Problem adding photo to database, what to do?You need to add enctype to the FORM element: For example: <form action="script.php" method="POST" enctype="multipart/form-data"> Seu arquivo: <label for="foto">Foto:</label>… 
- 
		2 votes0 answers148 viewsQ: Composition and Injection of DependencyI was studying Design Patterns and I got a question: The concept Composition (OOP), inflicts on the standard "Dependency Injection"? 
- 
		1 votes2 answers2838 viewsA: Write data to two tables from a PHP formPut: name="Submit", send button. And replace the php code with the bottom. if( 'POST' == $_SERVER['REQUEST_METHOD'] && $_POST['submit'] == 'enviar' ){ $nome = $_POST['nome']; $sql =… 
- 
		7 votes1 answer1339 viewsQ: A Product in Multiple Categories - PHPI would like to know how to relate a product in several categories ? For example: A shirt can be in the Categories : "Green / Blue / Yellow" and when I filtered by category the product should appear…