Questions tagged as 'php'

2
answers

Allow special characters in .htaccess

I have a problem when showing pdf files, in my htaccess I have this: RewriteRule ^([a-zA-Z0-9/]+)$ index.php?view=$1 Everything is working well for me, but at the moment of sending a url like this: href="files/RAD.pdf/" href="files/archiv...
asked by 03.08.2018 / 19:43
1
answer

send two data in a select in laravel

What happens is that I want to send two parameters by means of a json in ajax to the laravel driver, but I do not have the slightest idea of how to select to receive the parameters, I would like them to help me with it Here I leave my driver cod...
asked by 19.02.2018 / 20:12
2
answers

Select a single "checkbox" and then do a calculation

I am introducing myself to the world of Web Programming, and in one of the projects that I am making through the course, I have gotten myself with the following question, of which I have investigated but I can not find what I really look for....
asked by 20.02.2018 / 16:16
1
answer

php post method

I have a form in a php attempt with the date field <form action="../control/registrar_factura.php" method="POST"> <h3>Ingrese los datos</h3> <!-------Tabla DATOS----------------------------------->...
asked by 20.02.2018 / 12:59
1
answer

because I get it Warning: mysqli :: query (): Could not fetch mysqli in C: \ xampp \ htdocs \ test \ admin \ checklogin.php on line 8

<?php session_start(); $usuario=$_POST['username']; $contrasena=$_POST['password']; include("../library/config.php"); $ingreso = $conexion->query("SELECT * FROM administrador WHERE Usuario='$usuario' AND Clave='$contra...
asked by 02.03.2018 / 03:53
1
answer

PHP Parse XML from a url

is the first time that I parse an XML from PHP and I have many doubts. I have written this code but it gives me some warning that I do not know if they are normal: $url = "http://...xml_obras.php"; if(!$xml = simplexml_load_string($url)) {...
asked by 02.03.2018 / 17:58
1
answer

FPDF Cell or Multicell

Good afternoon everyone, I have a problem with a text that is too long for the cell, and I do not know if it is possible for Cell or Multicell to adjust so that the long text enters in the same cell but in two lines. I have tried these two...
asked by 02.03.2018 / 19:17
2
answers

FPDF cell does not fill with color and gets a line break that I do not want

Good afternoon everyone! I am a newbie with FPDF and I notice a lot, I have a problem with cell and it is not filling the cell as I want and also I get a line break strong> (in a multicell that goes just below) that I do not want, can you...
asked by 01.03.2018 / 17:31
1
answer

Undefined variable

I have a problem, I am following a php programming course and I put the information as it is, the problem is that it throws me an error when I send a variable call. User function <?php function Users(){ $db = new Conexion(); $sql...
asked by 20.01.2018 / 04:33
1
answer

How to calculate the average of the differences between timestamps in php?

Good afternoon, this is the first time I ask a question. I have an array of data with timestamps. First of all I'm calculating the time difference between each of those brands. That calculation I'm doing it using the function --diff-- of...
asked by 20.01.2018 / 17:04