Questions tagged as 'php'

3
answers

Pass php variables to function onClick

<script> $.fn.Recibe = function(id,p) { alert(id+' '+p); } </script> En PHP $diPesca=1; $var="Enviar parametrosa funcion js"; $fila="<div title='click para enviar' "; $fila .=" onClick=\"$(this).Recibe('".$idPesca."','"....
asked by 29.08.2017 / 19:54
1
answer

that allows login only when the user is active

In my DB in the user table the asset field is is_active, what I need is that with this script I authenticate only those that is_active = 1, thanks <?php session_start(); if (isset($_POST['token']) && $_POST['token'] !== '') {...
asked by 01.09.2017 / 15:04
1
answer

Laravel: Rename a file located in / resources

I have files saved in the following path: /resources/views/projects/nombreproyecto.blade.php So, I have a form that I ask for the new name of the project and what I want to do is rename the file, for example: I have a project called...
asked by 01.09.2017 / 12:47
1
answer

Obtain data from different tables in a mysql database

Hello, good evening everyone, I have a problem when making a query on mysql from php. Basically my system will make reports from a database, which is structured like this: Profiles Table +-------------+-------------+------+-----+---------...
asked by 01.09.2017 / 02:02
3
answers

problem when uploading photo with jquery and php

At this moment I am trying to upload a photo with ax folder but the photo save is not executed, because when I press the button it is sent the whole page and the process is not done without reloading the page, to then I leave the codes that I ha...
asked by 01.09.2017 / 02:33
1
answer

Error 500 with PHP in Iframe [closed]

I have a iframe that loads a PHP page which is used to enter notes in a MySQL table. The notes are entered from a simple form with input . The form is sent to the page loaded in iframe , which receives the data of input...
asked by 02.11.2017 / 17:24
2
answers

INSERT INTO does not work and the code does not give an error

I try to insert data into the database, mysql and it does not give me the else error and no php error or something, 3 days ago I'm trying to find how to do it and nothing, the code is fine, but it throws the error and the database does not recei...
asked by 03.11.2017 / 14:32
1
answer

Copy a sheet with PHPExcel

Good morning, I am working with the PHPExcel library to duplicate an Excel spreadsheet. I'm only interested in its content, its format is not. The first thing I do is open the Excel file: $archivo = $_FILES['fichero_usuario']['tmp_name']...
asked by 31.08.2017 / 07:51
1
answer

Attach image to mail Codeigniter

I am trying to attach several images to the body of an email, however when the mail arrives the same image is shown on the body. This is the script I'm using to scan the array images. foreach ($attachment as $key => $value) { $in...
asked by 29.08.2017 / 16:17
1
answer

How to prevent certain characters from being entered in a field

I'm with a form, where you have to enter a place of an event. It occurred to me to put in place of the word "Barrio" The characters "B °" and the recording process gave me an error. $lugar = htmlentities(addslashes($_POST['lugar'])); thus "...
asked by 29.08.2017 / 01:35