Questions tagged as 'php'

2
answers

three columns per php row

Hi, I want to create a gallery of images where you define how many I want to see, and I want them to look at 3 per row using php                                                         <body> <div class="container-fluid">...
asked by 02.10.2017 / 19:48
1
answer

Because I can not see a part of the web page after a domain redirection

I work with a school platform with laravel. But there is a part of the page where I should be able to assign teachers to groups and I no longer appear. I already checked the code and it seems fine. The error started from when I redirected the ro...
asked by 02.10.2017 / 17:05
2
answers

Undefined offset

Supposedly the counter ends in "2" but the error tells me that "3" is not defined. <?php include_once 'includes/templates/header.php'; ?> <section class="seccion contenedor"> <h2>Calendario de Eventos</h2>...
asked by 05.10.2017 / 05:55
1
answer

table of numbers

I have a program that prints odd even numbers and multiples of fifths but I take care that the result is looked like this in columns downwards I print linear 10 2 3 1 9 4 5 5 8 8 7 10 7...
asked by 05.10.2017 / 07:39
3
answers

Error calling a php function from the onclick event

The following happens to me: I call a function php from the event onclick , my problem is that the php function is executed whenever the page is loaded, that is, ignores the onclick . <a href="archivo.pdf" onclick="fun...
asked by 18.01.2016 / 15:00
1
answer

doubts about response time json ajax

I have a query in which I consult a record which I do with ajax and I get the data in json. now my questions is how I could optimize the response time since for example the query takes about 4 seconds, the table that I consult has ten rows, then...
asked by 31.10.2017 / 22:57
1
answer

Update that does not modify the table

NEW CODE VERY COMMENTED to explain where it works and where it does not! <?php session_start(); ob_start(); // Include config file require_once '990conn.php'; ?> <!doctype html> <html> <head> <meta char...
asked by 29.10.2017 / 21:49
0
answers

Help resize image and watermark

I have this script and I would like to add a watermark when uploading it to the server but I do not know how to do it. Could you help me? <?php if ((isset($_POST["enviado"])) && ($_POST["enviado"] == "form1")) { if(isset($...
asked by 10.11.2017 / 15:48
1
answer

Variable undefined PHP and Mysqli

[![introducir la descripción de la imagen aquí][1]][1]<?php session_start(); $conexion = mysqli_connect("localhost","root","", "trigoyponque2017"); /* $ruta = $_FILES['foto1']['tmp_name']; $destino = "../productos/".$_FILES['foto1']['name...
asked by 05.10.2017 / 21:37
1
answer

Problem with While in Mysql Query

Good friends I hope you can help me, I am saving data provided by the user in 2 different tables, when saving the second data I get this message Fatal error: Maximum execution time of 30 seconds exceeded Query to Verify Existence in th...
asked by 01.10.2017 / 01:47