Posts by Christian Jorge • 61 points
14 posts
-
0
votes4
answers830
viewsA: How to search for value in Array/object in PHP?
There goes what I did: To access the value of Userid, I realized that I will have to use the notation to access objects (->) wherever stdClass Object and normal array indexes where you have…
-
0
votes4
answers830
viewsQ: How to search for value in Array/object in PHP?
Personal I have the following array: stdClass Object ( [Chats] => Array ( [0] => stdClass Object ( [Chat] => stdClass Object ( [ChatId] => 13383 [UserId] => a2784a6dcf [SystemId]…
-
2
votes2
answers127
viewsQ: Search last access record with MYSQL
Suppose I have the table clientes: -------------------------------------- | ID| Cliente | Data_Registro | |------------------------------------- | 7 | Joaquim | 2019-07-17 09:45:00 |…
-
0
votes1
answer73
viewsQ: Problem when using query
I’m having the following problem when using some query in my Laravel. I wondered this IP 192.168.1.1, in my file . env put 192.168.1.31 where is located my database. Does anyone know what might be…
-
0
votes1
answer52
viewsQ: Hide "PROFILE" in the Phpmyadmin view tab
Does anyone know how to hide this Profile part in Phpmyadmin? I’ve touched everything here, tried to reset the default settings and nothing!…
-
0
votes1
answer23
viewsQ: Triggers for date verification
I’m having a question! I have a schedule of contracts and wanted to update the field of data_exclusao for the current date each time the field data_inicio is possible through triggers? I’m a…
-
1
votes0
answers50
viewsQ: Select in varchar column containing only one word
How to run a SELECT SQL that only looks for VARCHAR type results that contain only one word? That is, I don’t want results with more than one word
-
0
votes0
answers67
viewsQ: Page shows Angular error
I took a page for maintenance and noticed the following error: I suspect that the angular directories must be incorrect, but even when changing them and putting the link caught on the internet (CDN)…
-
-1
votes1
answer52
viewsQ: LARAVEL: Checking for SQL returns
I’m in need of some help! I have an SQL query in Laravel as follows: $cliente = DB::table('clientes')->where(DB::raw("cpf = '$cpf' AND (REPLACE(REPLACE(REPLACE(REPLACE(telefone1_num, '(', ''),…
-
0
votes0
answers44
viewsQ: Laravel: Duplicate project in same directory
Good morning, everyone! I have a Laravel API on a server in the folder /www/var/html/api1, for second reasons I have to build another API on the same server, so I duplicated the one I had to…
-
0
votes0
answers221
viewsQ: MPDF class - Base64 images
good afternoon, I am using a mdpf class to generate the PDF of a file, but when using an image in Base64 inside a <img> model my image did not appear Function: $date = date("dmYHi"); $mpdf =…
-
0
votes2
answers158
viewsQ: Sum of fields completed within the SELECT itself
I have an SQL query in the following format: SELECT XXXX AS duracao, calcula_horas_manutencao({data_inicio_f}, {data_final}, contrato.id) as horas_manutencao,…
-
0
votes1
answer56
viewsQ: Detect Print Popup Opening or a Dowload
i was wondering if anyone knows any way to detect the opening of that standard print popup for the execution of a javascript. My problem: I needed to run a script when the user downloaded or printed…
-
0
votes1
answer493
viewsQ: Reverse Dynamic Stack
Could someone help me with this pile? The goal is to create a function that reverses the values of the stack, I tried to do this using the Invert() function of the code below, but it is not working,…