Posts by Marcelo Rossi • 101 points
23 posts
-
0
votes0
answers20
viewsQ: How to change __autoload to spl_autoload_register using array?
I know there’s a lot of websites about it. But I confess that I searched and did not understand. The point is that this site is old and was on a server needed to change it to newer version of PHP.…
-
0
votes0
answers61
viewsQ: Fatal error: Uncaught Error: [] Operator not supported for strings in
Hello. I have a options with custom fields in a form. I’m getting the Fatal error: Uncaught Error: [] operator not supported for strings I have read that [] is an operator no longer allowed after…
-
0
votes1
answer28
viewsQ: System news PHP - News without error picture and do not delete
Hello! With the help of some friends here, I set up a news system. But I came across a problem. When I need to delete the news I use the following code: <?php…
-
2
votes1
answer119
viewsQ: News system with image upload in PHP - when there is no image!
I’m setting up a news system and in the Adm panel for registration today, the code works as follows: Register the title/text/image/ and make it active/inactive in the situation: In this case the…
-
1
votes1
answer133
viewsQ: Anchor link with file download
I need to do something simple, but I’m not getting it. <div class="txt-center"> <a href="software/programa.exe#final">Solicite agora</a> </div> I tried to do something…
-
1
votes1
answer2068
viewsQ: Multiple PHP uploads and insert several images into the mysql database
It may be duplicated, but I couldn’t find any explanation that follows in my reasoning. I have the following code taken from the Web, through a video lesson. <form class="form-horizontal"…
-
0
votes0
answers55
viewsQ: Ordered score from A to Z
I have a query, which I imagine is in object-oriented php, which in my case I’m at the beginning of studies(I know I’m late). I have a platform Xtech, and at the time of display of some features, I…
-
0
votes1
answer499
viewsQ: Switch case on Submit button according to button ID
I have 7 buttons of Submit in a form. Being: Four of that: <input type="submit" id="chamado1" class="mr-abre-btn" value="Abrir chamado"> Two of this: <input type="submit" id="chamado2"…
-
0
votes2
answers1098
viewsQ: Run automatic click on form input
I have a search form, and it lists details. when accessing the details it saves session, but when returning the list saves the query in the session but does not execute the query. What I thought is…
-
-1
votes2
answers5049
viewsQ: Check if record exists in the table and return in mysqli
Hello I have a table called logs id | usuario_id | produto_id 1 | 10 | 20 2 | 10 | 30 3 | 20 | 30 4 | 20 | 20 They are logs stating that the user with id 10 has already seen the product with id 20,…
-
0
votes1
answer105
viewsQ: Query with duplicate data in Mysqli
Hello. I’m having trouble displaying results of a bank consultation. I have 2 tables Tabela 1 - logs // logs do sistema //user_id = são os usuários administrativos do sistema //user_perfil = é o…
-
0
votes2
answers60
viewsQ: Save to the bank who edited profile
I’m developing a system that registers employees of companies. In this system I have the staff tables and users. Table employees have the data id|nome|empresa|data_cadastro|user_view|user_edit User…
-
0
votes2
answers249
viewsQ: Comparison of strpos() variables - PHP
I need some help between levels of access, I’ll post some of the code. It is a connection in AD (Active Diretory), authenticating the user and searching to which group he belongs. This is the login…
-
0
votes1
answer693
viewsQ: Countdown of days to a future event
A system that registers resumes, the resume is active for months after the registration date, which in my table is the variable $row_curriculos['created']; I managed to create php that says the date…
-
2
votes1
answer899
viewsQ: Creating event in Mysql
I would like to create an event based on 2 situations. I have a table and a column situat_id with values [1 - free], [2 - busy], [3 - Unavailable]; And another modified column - generates the…
-
0
votes1
answer121
viewsQ: Use php to set column width depending on while result
I have the following code $result_categorias = "SELECT * FROM categorias ORDER BY ordem ASC"; $resultado_categorias = mysqli_query($conn, $result_categorias); $total_categorias =…
-
0
votes0
answers465
viewsQ: Upload multiple files in the same form and write name in the database
I have a registration form with two file input. One called file (an image) and the other called arquivo_download(a pdf). In my table I have a column [image] and another [downloads], which write the…
-
0
votes1
answer91
viewsQ: Select limiting query, and does not display the latest queries
In this script, it is limited to the display of 6 queries in the SELECT variable $quantidade_pg = 6, I used the IF to inform that all news situations other than 2 (unpublished) should be displayed.…
-
1
votes3
answers759
viewsA: How can I make a div hide on the side and when clicked appear on the screen?
Hello friend instead of using the modal use the library Jquery In it is Slidetoggle Does that effect Download the library and test. In HTML <article> <figure> <img src="imagem.jpg"…
-
1
votes1
answer2417
viewsQ: File upload, write MYSQL name and path
Personal hail! I have the following doubt, or rather I don’t know how to do it. I have a resume form that is completed and the user attaches a.pdf file. Purpose: user fills the form name, email,…
-
0
votes1
answer187
viewsQ: Filter Search
I have a problem to create a search filter with select, I was very confused, I will post the code and a picture of what I need: the code: <?php session_start();…
-
0
votes3
answers2846
viewsA: Block access to PHP pages with SESSION
I made this file called segunrança.php, and did include. <?php function seguranca_adm(){ if((empty($_SESSION['usuarioId'])) || (empty($_SESSION['usuarioEmail'])) ||…
-
0
votes3
answers2846
viewsQ: Block access to PHP pages with SESSION
I am practicing PHP. I’m setting up an admin panel with login screen. I have my index.php page which is the login (EMAIL AND PASSWORD). After logging in, direct the administrative page.php The…