Posts by Adelino Vasconcelos • 76 points
14 posts
-
-2
votes2
answers87
viewsA: How to convert data in "September 18, 2018" format in PHP?
experiment <?php date_default_timezone_set('America/Sao_Paulo'); $data = new DateTime(); $formatter = new IntlDateFormatter('pt_BR', IntlDateFormatter::FULL, IntlDateFormatter::NONE,…
-
1
votes2
answers2428
viewsA: Anchor Link, how to let it open at a certain page position
i usually do it by id desired link <a href="test.html#id" target="_blank">NOME</a> Address page <div id="id"> *id-can put whatever you want, if you put it in the div contact then…
-
0
votes1
answer176
viewsA: Sending PDF and JPEG files with Jquery/ajax
Try using this type of code and use a <form> to upload <?php $target_dir = "uploads/";//upload paste $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1;…
-
-2
votes1
answer671
viewsA: Why $_SESSION is not accessible on another page
I use this code for the $_SESSION if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; function isAuthorized($strUsers, $strGroups, $UserName,…
-
0
votes3
answers645
viewsA: Format date coming from SQL SERVER Database
I still can’t comment. Is the date that goes to the database entered or comes by default? You already tried to use php $date = date('d-m-Y', strtotime( $row['date'] )) This is an example if you…
-
1
votes1
answer581
viewsA: Line limit Google Charts
You can always use this graph and use "Average" to put the average value there. https://developers.google.com/chart/interactive/docs/gallery/combochart google.charts.load('current',…
-
1
votes2
answers37
viewsQ: while Inside the variable
I’m creating a search system where the user will only post the month and year they want to search. but I’m not getting the code is as follows $output='<h2 class="text-center mb-4"…
phpasked Adelino Vasconcelos 76 -
0
votes3
answers31
viewsA: Does not work SQL
For those who have the same doubt I stay here a Tip $query_part = "SELECT * FROM participacao WHERE NOT manutencao = 'Oficina' ORDER BY Id DESC";
-
0
votes3
answers31
viewsQ: Does not work SQL
I have this SQL function in a php code but I’m not getting the data requested from the database $query_part = "SELECT * FROM participacao WHERE manutencao = 'Equipamento' AND 'Material de saude'…
-
-1
votes1
answer59
viewsQ: PHP update undefine
I can’t update the database php faults. <?php if($_SESSION['MM_Username']=="Comandante"){ if(isset($_POST['estadoComando'])){ updater($_POST['estadoComando'],$_POST['id']); //<-- linha 213 }…
-
1
votes2
answers58
viewsQ: PHP Search error
I do the search with the existing numMec and appears to me that does not exist in the database <?php if(isset($_POST['search'])){ $searchq = $_POST['search']; $searchq =…
-
1
votes1
answer623
viewsQ: Bootstrap 4 Nav bar
Good morning This is the code I use in my menu bar, but when you do Collapse the button is the whole size of the bar by raising the logo icon, I wanted the Collapse button to look the way it should…
-
0
votes1
answer257
viewsQ: Undefined index: Submit
I have the following code and the following error appears to me <?php $user=$_SESSION['MM_Username']; if($user){ //user is logged in if($_POST['submit']){ //start changing password…
phpasked Adelino Vasconcelos 76 -
0
votes1
answer548
viewsQ: Record sequential number per year PHP
I wanted to create an automatic numbering record but reset each year. Getting for example 170001...170002 and for the year 180001...180002 But with this code, I always register 1700001 <?php…