Questions tagged as 'php'

1
answer

Using ";" in a query that is in php

I have this query: SET @runtot:=0; SELECT Fecha, (@runtot := @runtot + Numero) AS 'N' FROM Tabla WHERE 'ID' = 2 I am using this query on a page of php . But since there is a ; in the query (at the end of SET @runtot:=0; ), the...
asked by 07.01.2016 / 19:29
2
answers

Create an array in a PHP class [closed]

Good morning, I have to do the following exercise I have done the following class Jugador { private $numeroJug; private $ptos; function __construct($numeroJug) { $this->numeroJug = $numeroJug; } function...
asked by 27.01.2018 / 16:34
1
answer

Repeat javascript cycle

Good evening, I have this view (the image) which is part of an invoice, precisely this is the detail of the invoice, and I have in this detail a javascript function so that while I write the name of the product I search the product in the databa...
asked by 06.11.2017 / 04:03
3
answers

Create table vertically with PHP

I'm starting with PHP and I have to do an exercise to show calculated results from an array in a table. I get the data but at the time of creating the table I do not give the formula to do it horizontally. I mean, I get to do it like this:...
asked by 22.10.2017 / 18:46
2
answers

Refresh or redirect a running page

I am making a shopping cart, I have the product table formed, with the values that I am adding in a session variable .. the problem is that every time I add a product, it sends me the beginning of the page, and I would like that either send me t...
asked by 03.01.2018 / 23:01
1
answer

Upload multiple images to the server with PHP

I have a fragment of code that makes the upload of files, in this case images to the server and then saves the record in the database [MySQL], the operation works but sometimes I find it slow when trying to upload 2 or 3 images, which seems stra...
asked by 19.10.2017 / 16:21
1
answer

Progress Bar Dynamic Bootstrap MySQL

Good day forum, a help to generate a ProgressBar Dinámico with data extracted from a query mysql . Progress Bar <?php foreach($clientes as $cliente): $id = $cliente->identificador;...
asked by 22.12.2017 / 19:21
1
answer

Run Python file from a PHP file

I would like you to help me with a problem that I have with my code, which I have been reviewing a lot but I can not fix it, this is my program in php, which runs on an Apache server (using raspberry pi 3 B), I will also leave you my python prog...
asked by 30.09.2017 / 04:41
1
answer

There is some php method that resembles the indexof, push and reduces [closed]

Good to know if in php there is something similar to indexof, push and reduce javascipt     
asked by 05.10.2017 / 16:51
2
answers

How to hide the driver in the url with codeigniter?

I do not know how to hide the controller name and its function in the url of my website. I have several controladores , one of them is blog , which is the controlador por defecto set in the file routes.php . $route[...
asked by 02.10.2017 / 11:08