Posts by Zimaldo Junior • 61 points
6 posts
-
1
votes1
answer22
viewsA: Undefined method error in table does not return getteres methods
When does the foreach: foreach ($student->Select() as $key) What is named as key is actually value, at the moment every $key is the array with the content of a line in the BD; If you want to get…
phpanswered Zimaldo Junior 61 -
0
votes2
answers45
viewsA: Check empty PHP array
If I understand correctly your problem is not to check if the array is empty, but check if a value is empty before inserting it into array. So what you should do is create the array before adding it…
-
1
votes1
answer369
viewsA: Pass input value to URL API
You need consume the API using JS, because HTML will not automatically modify data after the page has already been printed, and your API URL does not accept query (?something=123). For this there…
-
0
votes2
answers590
viewsA: Checkboxes from Codeigniter database
Currently I see that you are printing inputs with various names (different tags). But currently you still have control of it, in the future when doing the POST it may be necessary to read again all…
-
1
votes1
answer76
viewsA: File upload does not send
Check the following PHP settings directives (php.ini): upload_max_filesize - Sets the maximum file size in a POST. post_max_size - Sets the maximum post size (including the file size). Check if the…
phpanswered Zimaldo Junior 61 -
0
votes3
answers91
viewsA: Edit only one table row
<?php //LIMIT 1, Limita em 1 resultado apenas $sql = "SELECT `ID`, `carro`, `datasaida` , `horasaida` , `datachegada`, `horachegada`, `kminicial`, `kmfinal`, `destino`, `motorista` FROM `carro`…