Posts by Jonathan Halberstadt • 84 points
13 posts
-
0
votes1
answer63
viewsA: JOIN with two fields in the ON clause with Codeigniter (mysql+php) (MVC)
tries that way, can’t have a Where in a Join return $this->db->select("cargo.Nome, cargo.Codigo", false) ->from(cargosPorEmpresa) ->join('cargo', 'cargo.idEmpresa =…
-
0
votes1
answer61
viewsA: Encoding error in SQL Server Docker
You probably have the wrong PDO driver in PHP installation. I run PHP / Codeigniter on multiple Windows servers and had problems with the wrong drivers setting things up initially. Since you are in…
-
0
votes1
answer208
viewsA: Laravel in hosting only works at home
I had this problem in a server Locaweb and solved as follows. Keep the Laravel structure the same as it was. Edit the htacess If not Ocaweb, remove the first lines. ##### LOCAWEB - NAO REMOVER #####…
laravelanswered Jonathan Halberstadt 84 -
1
votes2
answers267
viewsQ: Add values for same-day array
I have the following array: array (size=3) 10 => array (size=13) '11/06' => int 104 '18/06' => int 145 '25/06' => int 136 '02/07' => int 135 '09/07' => int 122 '16/07' => int…
-
-1
votes4
answers274
viewsA: I’m not able to create the relationship between the tables through the migrations of Laravel
I have already gone through this several times and my solution was to backup the tables delete the database and run php Artisan Migration again, why for some reason Laravel does not accept new…
-
1
votes2
answers93
viewsA: How to implement two Request to validate individual and legal fields?
In this case you can use a request within the controller. public function store(Request $request) { if ($request->tipo_pessoa == "F") { $validatedData = $request->validate([ 'title' =>…
-
1
votes1
answer29
viewsA: Lines in export excel
@Sam answered the question. <table border="1"> </table>
-
-1
votes1
answer29
viewsQ: Lines in export excel
I am exporting a listing to excel, but when I open excel it comes without the partitions. <?php require_once '../../classes/xajax.inc.php'; $db = new SqlSrv(); //$sql = "SELECT * FROM cad_pessoas…
-
-1
votes3
answers1942
viewsA: Error sending email on Laravel 5.7 - Swift_transportexception
I have already picked up a lot to configure this type of connection and reached the following conclusion. Create and use Google accounts for sending email, which is why some email servers do not…
-
0
votes2
answers35
viewsA: Am I having a problem in the Manytomany relationship in Dallas if someone help me ouder?
This error is saying that the name variable does not exist. Forehead like that No Controller public function index() { $medicos = Medico::with("especializacaos")->get(); return…
-
2
votes1
answer573
viewsQ: Export HTML table to Excel
I have this PHP page that lists all my records, I’m trying to export it to Excel, but all the records come out in just one column. <?php require_once $_SERVER['DOCUMENT_ROOT'] .…
-
0
votes1
answer63
viewsQ: Onclick seeking input value
I have an html code that is inserted into a PHP variable And inside I look for zip code, if I use <input alt='cep' class='text difCep' name='cep' id='cep' value='$cep' type='text'…
-
1
votes1
answer388
viewsQ: Google Maps - Set Zoom user
I have this code down with the Google Maps API using various places defined within Javascript. My problem is that I have more stores to add and they’re spread all over the state, so I want when the…