Questions tagged as 'php'

1
answer

Translate from SQL query to Eloquent

Hi, I'm new to eloquent and laravel, I have the following query, which runs perfectly from phpmyadmin: SELECT * FROM vips_categories JOIN vips_products JOIN vip_archivos WHERE vips_categories.parent_id = 1 AND vips_categories.parent_id = vips...
asked by 04.08.2017 / 20:49
2
answers

Table that does not load with php

I have a page where the intention is to upload a series of messages received by a user. For that in the principle of loading the page I do the following: <?php $conexion = new Conexion(); $sql = "SELECT id, fecha_hora, remitente, asunto FRO...
asked by 04.08.2017 / 19:10
2
answers

verify if the user is of legal age

I would like to try to verify before being able to make an insert if the users to register is of legal age can register in the system, but if it is a minor the system will not let it register, since it is required to be of legal age to be able t...
asked by 04.08.2017 / 06:56
1
answer

How can I create an element in the DOM from a php echo

Good, no matter how many laps I give an action. The case is that through ajax I call a php file that prints an html tag with echo. The problem comes when you want to handle that label (to which I have put a class) because, I presume, that is bec...
asked by 03.08.2017 / 18:40
1
answer

Problems with postgresql prepared queries?

I'm doing a query prepare to avoid the sql injection, but I did not run the page that should show the result, it gives error and I think it's because the functions I'm using are from mysqli, and I'm working with postgresql, I'm not sure if these...
asked by 05.08.2017 / 00:51
2
answers

How to concatenate a String with SQL query in PHP?

I am writing a script in php that makes a query to a sql database. The result of that query I need to concatenate it with a string. Example: the query to the database returns "Cosme Fulanito" and I need to concatenate it with a stri...
asked by 06.08.2017 / 03:17
1
answer

Warning when trying to delete a file

I am trying to delete a file that is stored on my server, but the following warning occurs:    Notice: Undefined variable: path_pdf in   C: \ xampp \ htdocs \ repositoryApp \ appRegisterEvents \ mainApp \ deleteFile.php   on line 8       War...
asked by 11.08.2017 / 16:46
2
answers

Problem with requires and URL

Good afternoon, I have a problem with the topic of internal routes on a platform in php. This is the error message: Fatal error: require_once(): Failed opening required 'http://localhost:8080/CBS/CBSPlatform/html/links.php' (include_path...
asked by 09.08.2017 / 21:42
2
answers

Remove tag p only when it contains figureimg / figure

I have these labels <p><figure><img src="xxxx"></figure></p> and I would like to change them for this, that is, remove the <p></p> <figure><img src="xxxx"></figure> but...
asked by 15.01.2018 / 22:07
1
answer

Download with PHP filters

I want to be able to make a download with filters. So far I get to download by city, state or city by state or vice versa, but not download me by a date range, or city or state according to date. In a few words I want to download by a single fie...
asked by 15.01.2018 / 17:46