Questions tagged as 'php'

1
answer

Get ajax checkbox values

the following happens to me I am driving a system which has 2 checkboxes <div class="form-group"> <input id="admin" type="checkbox" class="material_checkbox" name="admin"> <label for="admin">Administrador</...
asked by 10.02.2017 / 01:30
1
answer

Get POST variable in php and AJAX in the same form, PHP SELF

Hi, I have this problem, I have a canvas which serves as a signature for documents that are sent to the same form where you are with phpself , but at the time of doing the conversion in ajax to send it as string of image , nothing brings...
asked by 07.02.2017 / 15:54
1
answer

Problems returning value of a function

I have a function within another function which is inside a class in PHP , the funcion1 receives the parameter of a query $row['fila1']; that assigns a variable $ id. When printing $ idgasto inside the function, it sen...
asked by 07.02.2017 / 19:14
1
answer

I can not get radio button value

I would like to obtain the value of the active radiobutton of the group "tipo_sancion" <?php include "conexion.php"; ?> <html> <head> <script type="text/javascript" src="./js/cambio.js"></script> <script type="...
asked by 08.02.2017 / 01:47
1
answer

send an email with a php form

I am trying to send the data of a form to an email but it does not send them to me It shows me up to the second alert. I'm sending.php and nothing appears. Can you help me? contacto.php <!DOCTYPE html> <html lang="en">...
asked by 05.02.2017 / 18:07
1
answer

Syntax of this query [closed]

I have this query $CeanLibre = "SELECT min('3') + 1 as prox_ean_libre FROM (SELECT 0 AS '3' union all SELECT '3' FROM 'Direcciones&Codigos' WHERE '3' BETWEEN '".$CCodEan[2].$CCodEan[3].$CCodEan[4]."' AND '".$CCodEan[2].$CCodEan[3].$CCodE...
asked by 15.02.2017 / 22:11
2
answers

Visit counter

I need your help for a visit counter, it's for wordpress or php, [ link UPDATE function under_bh_fun() { // fichero donde se guardaran las visitas $fichero = "visitas.txt"; $fptr = fopen($fichero,"r"); // sumamos una visita $num = f...
asked by 15.02.2017 / 17:05
1
answer

property is not a php object

I'm doing an echo of an object that is an html string, first I declare it in an array and then I convert it into an object, I do a var_dump and if it comes out but when doing the echo it goes out that the property is not an object. Can yo...
asked by 16.02.2017 / 16:42
1
answer

Delete registration 24hrs after created

As I do so that the records of a table in my MySql database are deleted every 24 hours automatically without using cronjobs. Pd: use php. Greetings.     
asked by 21.02.2017 / 21:40
2
answers

Save in image the contents of a variable in php

Investigating in the network I found how to add text to an image with the following programs: File name: writingOverImage.php <?php require_once 'class.textPainter.php'; $x = $_GET["x"]; $y = $_GET["y"]; $R = $_GET["r"]; $G = $_GET["...
asked by 17.02.2017 / 17:27