Questions tagged as 'php'

1
answer

Validation of Letters in Codeigniter

I am developing an application in
asked by 22.09.2016 / 16:04
1
answer

Problem UPDATE with AJAX

I want to update the data of a form using AJAX (jQuery 1.10.2) and the answer goes through the error. HTML <form name="formulario"> <p id="identificador">9</p> <input id="opcion-1" type="radio" name="opcion" value...
asked by 05.05.2016 / 17:10
1
answer

undefined index php

I have this code, the fact is that in the line of $ _SESSION ['students'] I miss the error. What I want is that if that array of students does not exist that believes it, and when the program starts, since it does not exist, it gives me that err...
asked by 17.01.2018 / 11:17
1
answer

Browse JSON Array in PHP [duplicated]

I need to run a JSON array in PHP give me back the following: { "SU_Result": { "SU_BE": [ { "proABREVIATURATITULO": "", "proAPELLIDOMATERNO": "", "proAPELLIDOPATERNO": "", "proNOMBRES": "",...
asked by 18.12.2017 / 17:28
1
answer

Control date between client and server in PHP

I have made a small event registration module, taking between date and time fields: YY-mm-dd H:i:s . Users who register can be from different time zones. Then an event scheduled for a moment could not correspond with the other clients....
asked by 08.02.2018 / 04:22
2
answers

php - str_replace

I'm in PHP with my next problem. In a variable I receive the surname of the user but if the surname is for example, Hernández the variable saves Hern\u00e1ndez . So that the last name I can later send it as it plays in a json, I...
asked by 06.08.2018 / 12:57
2
answers

Validate range of dates in php or jquery

How can I condition PHP 5 (or jquery) if I am within a range of dates? For example I want to condition the range of dates If it is within the range send a message "Within Period" Otherwise "Out of Period" The fact is that the date I want to v...
asked by 26.12.2016 / 20:31
2
answers

Display data in a table with PDO

I HAVE PROBLEMS WHEN SHOWING THE DATA I DO NOT KNOW HOW TO DO IT WITH PDO ALREADY LOOK AT VARIOUS EXAMPLES BUT I DO NOT FIND ONE THAT SERVES ME <?php $conexion=new PDO("mysql:host=127.0.0.1;dbname=eladeria","root",""); $busqueda=$co...
asked by 02.08.2018 / 03:31
4
answers

Doubt query sql from php with special characters

I hope you can help me with this doubt, Given the following php code that connects to a sql server database: $sql = "select * from tabla1 where campo1 like '%ñ%'" ; $datos = $this->objeto->listar() ; $numRegistros = sqlsrv_row_num($da...
asked by 14.12.2018 / 18:56
1
answer

Redirecting 301 using htaccess

I have a problem with some redirections in a site when creating a redirection of a <etiqueta>.html to a <categoria>/ . The problem is that you drag the variable. The <etiqueta> s are a predefined list by...
asked by 02.07.2017 / 21:20