Questions tagged as 'php'

1
answer

RETURN DATABASE IMAGE AND SHOW ON BROWSER

I would like you to help me with a little doubt that I have, is it possible to save images in databases and return them to the browser but that works as if you were reading only the image? I hope you have understood me, just here I leave an exam...
asked by 11.12.2018 / 17:52
3
answers

Error with changing date format

I made a system that saves the date in Y-m-d format, both the entry and the exit date. What I did to give back that format is take the date in a variable and use strtotime , like this: <?php $originalDates = $row['ingreso']; $o...
asked by 13.12.2018 / 14:27
1
answer

Know if it is an image or PHP link

I am writing a code that consists of reading files from a folder in which there are images and links, and I need to differentiate between image and link, but I have been very very caught. The code is this in case you can help me: //Leer archiv...
asked by 22.05.2018 / 08:14
2
answers

Insert 'N' times of PHP AJAX MYSQL records

I was looking for a way to generate a list with information depending on 2 variables, I found an example ( Link ) and I found it interesting. The problem is that when inserting the selected data it inserts them into the Base de Datos as a...
asked by 24.07.2018 / 21:52
2
answers

get variable from php file import it and use it in ajax

I have a php file with the following content ----filename.php--- <?php $text = 'eos'; ?> and I have a js file called app.js with the following content $(document).ready(function(){ $.ajax({ url: "http://127.0.0.1/swapng...
asked by 02.08.2018 / 00:15
1
answer

Validate form without deleting the data

Good I have a simple form, I want to validate the fields are not empty and that the ID is not duplicated, but at the same time that those fields that are well entered are not deleted. I have the following code. <script>...
asked by 15.09.2017 / 14:09
1
answer

add in bd a date 2 days after today without counting saturday and sunday in mysql php

I have an insert in mysql database of dates, I am using the date_sub command to add 4 days to the current date, $fecha_actual = now(); INSERT INTO TABLA_FECHAS (preparar, llamar) VALUES (' . $fecha_actual .',date_sub(' . $fecha_act...
asked by 08.02.2018 / 19:05
2
answers

Display form data in another view

I have to pass the data of a form, by means of a controller to a new view (different from the form). I have written the following: In web.php: //ruta para meter datos y llamar al controlador: Route::get('/formalumno','AlumnosController@m...
asked by 03.02.2018 / 12:28
2
answers

replace asterisk (*) with label b as appropriate

I have the following example text: Hola bienvenido ah *tu sitio.com* para continuar oprime *cualquier tecla* What I need is to change the asterisks for the <b> tag in php but it would be relatively, if you already opened a tag...
asked by 14.02.2018 / 23:00
4
answers

Problem with program that makes the multiplication table of 5

I'm doing a program that makes the multiplication table of 5 but I occupy that I display on the screen so at the time of putting echo does not let me print the characters throws me the numbers of 5 in 5 but does not throw me the characters of th...
asked by 06.04.2018 / 19:13