Questions tagged as 'php'

2
answers

Insert video in HTML

I'm making a website that has a video on the cover. The problem is that the video is too loud, so I made the following resolution: CSS Code #video-container{ height:85vh; overflow:hidden; } video{ width: 100%; overflow:hidde...
asked by 26.10.2016 / 16:58
1
answer

Simulate betting in PHP

I want to make a PHP script that completes the realization of a random pool. I have the following code, which would make a simple table of 15 rows and 3 columns. I do not know how to randomly mark in each row a 1, X or 2. I tried a rand (1,3), i...
asked by 28.10.2016 / 20:01
1
answer

Notice Array to string in line 72

I have the problem with an insert in php the rest of the models make it perfect except this one, I leave the insert code pointing to the line 72 public function Insertar($r){ try { $sql="INSERT INTO reporte(reporte_id,repor...
asked by 09.11.2018 / 15:17
1
answer

xammp installation

Good I am new to this, the fact is that I have made a web page, and after several times I realized that I did not install the mercury module of the xammp, the fact is that for something else I want to do, I need a server mail, and I would like t...
asked by 22.10.2018 / 19:04
1
answer

Symfony does not take me well the ROUTE

I'm starting a project in symfony 4 and I have a problem with the routes. I am using annotations This is my IndexController : <?php namespace App\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use...
asked by 19.10.2018 / 19:20
0
answers

Update value within a Foreach

please help me, I need to update the result of my total every time I change the amount <script type="text/javascript"> function operacion(field) {...
asked by 28.09.2018 / 18:44
1
answer

How to conjugate the SELECT to hide their OPTIONS in HTML

my query is as follows, I have a database of table "departments" that presents the following columns: department, province, district. with this I make a call to the database to be able to offer options to the 3 SELECT that I present. So what I'm...
asked by 26.09.2018 / 19:06
0
answers

Slow query 100% cpu

I have a problem when I run the page it gets slow because the query reaches 100% CPU. SELECT id, nombre, precio FROM skinShop WHERE descripcion='premium' AND nombre NOT IN (SELECT item_id FROM compras WHERE user_id = '$id_s') ORDER BY precio...
asked by 22.09.2018 / 22:22
1
answer

Increase in DataTable

I have this dataTable with a best-selling product top, but I do not want to give me the id of the table, but a loop from 1 to 10, how could I do it? Here I have my code: <table class="table table-bordered table-hover table-striped"&g...
asked by 30.08.2018 / 16:42
0
answers

How to do a Select and an Update in a single command with pdo?

I need to recover and increment a counter, which is not a self-incremental id in a table, and avoid concurrency errors. I do not want to do table locks because of its high cost in resources. I have been viewing this article ( link ) and I've...
asked by 25.08.2018 / 21:23