Questions tagged as 'php'

2
answers

Error in php query

I have the following code that should print me the amount of products registered in a table <?php require_once "js/conexion.php"; $sql = 'select count(idp) as total from producto'; $result = $mysqli->query($sql); if(!$r...
asked by 01.11.2018 / 06:42
2
answers

Get Date / Time of the HTML or Php System

How do I get autoaticante the system time without the user Interact? echo"<td>Fecha de Entrega <input type=date name=fecha_entrega size=10 value=\"".@$fecha_entrega."\"</td>";     
asked by 01.11.2018 / 07:58
1
answer

Sweet Alert on Modal Bootstrap

I have the following problem using sweet alert and modal bootstrap. It turns out, I make the requests through ajax and php, but the generated alert always shows me the independent success if the request to the server was successful or not. What...
asked by 05.11.2018 / 04:07
2
answers

Print tables in Php form

Well, it happens that when trying to show the table "client" in my php form it is not generated, the problem is that it does not give me the origin of error. I've been looking for that error for a couple of hours and I can not find it. I have th...
asked by 17.10.2018 / 20:31
3
answers

Help with dynamic table

I'm having a drawback of handling tables. I need to show data from two tables, which I already have stored in the database, the first is services, it shows the existing services and when I click on one of these services I need you to show me ano...
asked by 20.10.2018 / 02:38
2
answers

Show last record entered, if it appears repeated

Today I bring a question about How to make a query? It turns out that I have a table called x, which has 3 or more records (ID, MAC, DATE_CREATION). Now I want to make a SELECT which selects a range of dates eg SELECT ID, MAC, FECHA_CRE...
asked by 25.10.2018 / 18:12
1
answer

Show message if php records do not appear

The problems that I present are the following, since I am trying that when I search for something it shows me what I am looking for but if it does not find anything then it shows a message of does not exist, the question is that it already shows...
asked by 22.10.2018 / 17:56
1
answer

send the selected variable of a select to get

I have this php file where the axis is chosen, it loads the Ids of the indicators that are related to it, but when I try to send them by Get to my other php file, it marks me an error of    Notice: Undefined index: IndicatorEje in   C: \ xamp...
asked by 26.10.2018 / 16:23
1
answer

Special characters Codeigniter PHPExcel

I have a function that extracts data from a DB and exports them to an excel file, the problem is that it does not show any characters or special characters (No.) This is my code: $this->excel->getActiveSheet()->setCellValue('I16',...
asked by 22.10.2018 / 20:59
2
answers

How to customize the order of the results in MYSQL

I have a table where I keep the post of a forum I did with PHP and Mysql: CREATE TABLE 'sala_muro_temas' ( 'Id' int(11) NOT NULL AUTO_INCREMENT, 'categoria' int(11) DEFAULT NULL, 'id_clase' bigint(20) DEFAULT NULL, 'id_autor' bigint(20...
asked by 12.10.2018 / 22:46