Questions tagged as 'php'

2
answers

How to concatenate a MySQL query with html tags to send color to text textView on Android?

The following code in php $result = mysql_query("SELECT name, concat('<div style="color:Red">',designation,'</div>') as designation FROM test.table_test;") or die(mysql_error()); if (mysql_num_rows($result) > 0) { while ($...
asked by 03.03.2017 / 21:59
1
answer

Replace text except in divs of a class with regular expression

I need a regular expression that replaces a text that is outside a certain div. Example: <div class="try">foo</div> <div>foo</div> foo <span>foo</span> The output should be when replacing foo by bar:...
asked by 25.03.2017 / 13:36
2
answers

Problem with PHP recursion

I have the following function in PHP that receives a date and a id_persona , which searches in a table of the database if there already exists a record with that date and with that id_persona . It works well, only that I need...
asked by 27.03.2017 / 17:15
2
answers

Replenish div tags by p in php keeping classes and / or styles [duplicated]

Hello friends, I have this doubt as <div> tags by <p> in php but ... I have <div> tags that have classes and / or styles that I want to keep with their respective% </div> Try this bu...
asked by 23.02.2017 / 19:38
2
answers

PHPExcel Cells With utf8

I have the problem that I do not recognize the special characters, I tried the following but it does not work for me: Putting it in UTF8 = $titulosColumnas = array('Código', 'Inclusión de la Noticia DD/MM/AAAA', 'Fecha de la Noticia DD/MM...
asked by 23.02.2017 / 16:53
2
answers

header (location) does not redirect

According to my program if I enter a user or password that is not registered, I should redirect myself back to the login page until a valid user enters, but do not grab it instead go to the check_login.php and it stays and does not return .. b...
asked by 22.02.2017 / 05:00
3
answers

Problem when sending a range of php dates

I have two input that passes a range of dates to the program in php that I have to return some ids, the problem is that it does not return anything, all in white: Desde Fecha <input name="desde_fecha_cumple" type="date" value="<?php echo...
asked by 05.04.2017 / 17:03
1
answer

help with a crud

my error is this: PDOException: SQLSTATE [HY093]: Invalid parameter number: parameter was not defined in C: \ wamp \ www \ form persona1 \ form person1 \ Model \ modelperson.php on line 55 this is my view this is the model function ed...
asked by 22.04.2017 / 04:14
1
answer

LogIn UWP C # + MySQL + PHP

Hello again guys; How can I consume a PHP web service from a universal application in C #? I searched through many codes until I found this Microsoft it works very well, everything is in the MainPage.cs. What I'm trying to do is creat...
asked by 20.04.2017 / 00:27
2
answers

Download file from mysql server

Good companions, I have a problem in my code and I can not fix it ... I'm trying to upload files and download them with php, the problem is that when I give it to download it leaves the page blank and does not download anything .. this is...
asked by 19.04.2017 / 21:52