Posts by João Vitor • 70 points
8 posts
-
0
votes1
answer46
viewsQ: Count column data and reset after Cpf exchange
I have the following columns in the table eventos (nome_hosp,cpf_hosp,parametro_evento, data). What I need to do is, where the column value parametro_evento = 1, perform a line count by separating…
-
0
votes2
answers65
viewsQ: Comparison of PHP and MYSQL dates
I’m having problems with a code, as I’m new in the area I’m developing just to learn. What I want to do: Perform a monthly access control of the user, that is, if it is not paid the monthly fee it…
-
0
votes1
answer26
viewsA: file sends to folder but does not send data to database
Daniel, an alternative is you generate a unique name for the file, and in the database just enter the file name. Thus, when using for example <img src="caminho/nomedafoto"> you get to rescue…
-
1
votes1
answer143
viewsQ: How to generate a dynamic ID for my Button with PHP and move to JS?
I’m trying to use PHP with Sweet Alert already tried with FIXED ID and it works. I’m trying to do that: while ($row = mysqli_fetch_assoc($sql)) { echo '<tr>'; echo '<td>' .…
-
0
votes1
answer33
viewsQ: Problem entering form data in Mysql
Good morning, I created a form for registration and this form should send via POST without leaving the page and perform the Insert in my database table, but it enters every time in my "Else{echo…
-
3
votes2
answers138
viewsQ: Delete Full user
Good morning, I’m trying to delete the items from a list but without success. Listing.php <html> <head> <link rel="stylesheet" href="/assets/_css/menu.css"/> <meta…
-
-1
votes1
answer221
viewsQ: How do I show a user ID through Sesssions?
I have the following file for user validation, and I would like to show the user ID, only the test paths, but it does not return me anything in the "menu.php" php validation. <?php // Verifica se…
-
-5
votes3
answers73
viewsQ: How to close a Session in PHP
I’m having trouble trying to destroy the sessions, I tried the code below, there is some way beyond that? <?php session_start(); session_destroy(); header('Location: index.php'); ?> What…
phpasked João Vitor 70