Questions tagged as 'php'

1
answer

Why do not you show me the content of my website 000webhost?

I have already finished a mini project, it works perfect on my PC "Localhost" but when I want to upload it to 000webhost it goes up all right, but when I want to see a view it does not show it, but no error appears. I think it's the .htaccess or...
asked by 14.12.2018 / 22:38
1
answer

Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, string given in

I can not show the data that the query brings me. I work with mySQL and a model of views and controllers. I get this error: Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, string given in . And the variable is not empt...
asked by 17.12.2018 / 16:49
0
answers

OpenPay does not recognize decimals

Good morning I have a question with the openpay payment code, and when I integrate it with prestashop, at the moment of making any payment, it marks me error 1001, which belongs to an incorrect format, and checking it turns out that openpay a...
asked by 17.12.2018 / 16:11
0
answers

How to decrease the query time to my BD to give options to my multiselect

It turns out that I have the following code: <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="css/bootstrap-3.3.2.min.css" type="text/css"/> <script type="text/javascript" src="j...
asked by 15.12.2018 / 05:57
2
answers

How to send the id to a modal

<table id="example" class="display" style="width:100%"> <thead> <tr> <th>Id</th> <th>Producto</th>...
asked by 13.12.2018 / 03:28
0
answers

Problem with MySql query inside PHP query

I have the following query in my php code $consulta = "SELECT p.universidad, COUNT(c.cod_cita) as TOTALES, SUM(CASE WHEN p.universidad = 'Latina' THEN 1 ELSE 0 END) AS latina,...
asked by 13.12.2018 / 01:20
0
answers

$ connection-real_escape_string () or mysql_real_escape_string ()?

I'm doing a login, and in my php, to escape characters I do not know if it is advisable to do with mysql_real_escape_string() . <?php session_start(); $conexion = new mysqli("localhost","username","password","DB"); if (!$conexion) {...
asked by 14.12.2018 / 13:06
1
answer

Go through database to get me the total

Good I am taking out a message in case the client has a pending invoice but at the time to do the sum of the totals I am not able to do that I grouped them. Because if there are two products in an order, two lines are created in the database, so...
asked by 14.12.2018 / 10:28
2
answers

Sort array by repeated words in PHP

I have an array in PHP (laravel) with words extracted from certain tweets. I need to be able to create a list or table where a word is displayed and the number of times it repeats in that array. That is, if the word is "hello" and it is repeated...
asked by 16.12.2018 / 21:53
0
answers

Error with move_uploaded_file in xampp

I am trying to upload an img to a folder but I get an error, I do not know if it is the fault of the xampp or what the problem may be I have looked at posted errors but none of them have worked or I have not been able to apply them: / <?php...
asked by 17.12.2018 / 10:24