Questions tagged as 'php'

1
answer

Record in the database the office hours and make an appointment

Hello, I'm looking for a North to create with PHP and MySQL a way to record in the database the hours of operation of several establishments, so that I can easily search and display if the establishment is open, or closed, or until what time ther...
asked by 18.12.2014 / 14:43
1
answer

Problems with reading and writing

Assuming you have an access log, each request will create or add values to the log file. Simulating multiple requests via ajax, I've found that there is always a problem. If you enter the browser console and run the code below, a request will...
asked by 08.12.2014 / 02:51
1
answer

How to return a collection of data using Doctrine ResultSetMapping?

I have the following script that is functional: SELECT r.coluna_1 as Coluna_1, e.coluna_1 as Coluna_2, FROM produto r INNER JOIN empresa e ON r.id_empresa = e.id_empresa WHERE r.id_tipo = 'N' AND r.data_devolucao <= :dataDevolu...
asked by 12.09.2018 / 18:53
0
answers

Problem fetching the most recent result of a group in a query in two tables with PHP and MySQLi

I am studying mysqli and PHP to migrate a personal blog, from PHP 5.6 to 7 (mysql to mysqli), the blog has a table with names and another with items related to names, dates and times, write a similar example. Before, I made a query in table 1...
asked by 15.09.2018 / 22:26
2
answers

How to give submit in the data of a dynamically generated form?

<div class="form" id="dynamicDiv"> <p> <div id="principal"> <form method="POST" action='enviaMform.php' id="enviaMform"> <div class="container"> <label for="ipHost">Nome do host:</...
asked by 10.09.2018 / 23:25
1
answer

Alternative connection for WebService

Good afternoon! I have the following function: function API($conteudoAEnviar) { try{ $cabecalho = array( 'Content-Type: application/json', 'Authorization: Basic ' . base64_encode(TOTVS_JSON_USER_S...
asked by 03.09.2018 / 22:01
1
answer

How to get the link id present in the postLink method?

I need to get the id of the link present in the postLink method to be able to delete an image whose id is equal to that id of the link, which is equal to the id of the database. How do I get this value? View <h...
asked by 21.03.2014 / 18:52
2
answers

Highlight data Filter

I have a problem highlighting data from a filter. In other words, I make the filter and show many dates. <?php include("conectar.php"); $quantidade = 1; $pagina = (isset($_GET ['pagina'])) ? (int)$_GET['pagina'] : 1; $inicio = ($quantid...
asked by 24.03.2014 / 16:47
2
answers

Query Select Option PHP

How to make a query with select option that the user can choose? No frontend: <form method="post" action="Procurarquery.php" enctype="multipart/form-data"> <span class="LABEL4CSS" id="LABEL4">Estado</span> <sel...
asked by 25.03.2014 / 18:44
1
answer

How to Insert Insert MYSQL if it is Upload or URL

Hello, I would like to know how to do a mysql insert, but the way I did it, I just used the javascript just to change the imput URL to the File, that is, I am trying to work on the same imput name, however I have doubts what to do in the case if...
asked by 01.12.2018 / 12:44