Questions tagged as 'php'

1
answer

Fancybox, how to redirect after a Submit

I need help with Fancybox, I do not understand how to make the LigtBox close and redirect the entire browser to another site after a POST from a Submit button. Here I leave the code <script type="text/javascript"> $(docu...
asked by 10.01.2017 / 12:54
2
answers

Crop image using image tool component in cakephp

I'm using a plugin Image tool component for which I have created a function, which I use after each upload of the images as follows //Función para recotar imagen private function _risizeimage($image){ $img = ImageTool::resize([...
asked by 11.01.2017 / 14:43
2
answers

mysqli_real_escape_string ()

Could you help me with this error?    mysqli_real_escape_string () expects parameter 1 to be mysqli, null given <?php require_once('../Connections/catalogo.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetS...
asked by 07.01.2017 / 03:57
2
answers

badge in a select to show an accountant

I am looking for a way to display a list that contains the number of students per room, that is: Ex: HTML <div class="form-group"> <select class="form-control" name="selecgrupo" id="selecgrupo"> <option>Selecc...
asked by 02.01.2017 / 14:18
2
answers

Sessions do not appear when I make a call by ajax

Friends I had a problem with the sessions, because I can not recover them when I call them by ajax from another domain (the ajax calls the previous domain) I create the sessions in this domain ( link ) and then I call that same domain with...
asked by 03.01.2017 / 17:00
2
answers

php make a web with login and navigate inside without losing the logeo of the web

Hi chic @ s I have this script: <?php session_start(); include_once "conexion.php"; function verificar_login($user,$password,&$result) { $sql = "SELECT * FROM usuarios WHERE usuario = '$user' and password = '$password'"; $r...
asked by 02.01.2017 / 21:56
2
answers

Problem decoding chain towards UTF-8

I have the following string on an XML file: seg&#56319;&#56320;n which is obtained by uploading a file, the thing is that I can not return it to any known character, to say it to ISO-8859-1 or UTF-8 for example según or segú...
asked by 03.01.2017 / 18:29
1
answer

Modify several tables with a join

Currently in my project I own 5 tables that are related to each other through a series of primary and foreign keys. Now I have a section where I can modify the data of all the tables but I would like to do it with an inner join. Is this possible...
asked by 29.12.2016 / 04:25
0
answers

Nginx does not recognize php 7 [closed]

I have installed Nginx, MySQL and PHP 7, but when I do the phpinfo () test I only download the file and do not deploy it in the browser, I followed the installation steps of this link: link I do not know what the error could be.     
asked by 26.02.2017 / 15:49
0
answers

How to start a PHP script using a jpeg / png as an extension?

What I do is the following I create a .php that will have as an extension .png or .jpg which is supposed to show the image, but does not show me anything: <?php header("Content-type: image/png"); echo "<img src='".$v...
asked by 26.02.2017 / 12:41