Questions tagged as 'mysqli'

1
answer

Only one product appears in the FPDF file as I do so that they all appear?

I have a sales page for a project and I have to pass the data of the cart to an invoice, I have the product and cart tables, and the id's of the products that were bought are stored in the cart. $query = mysqli_query($con,"select * from produc...
asked by 13.10.2018 / 19:19
0
answers

Warning: mysqli :: __ construct (): (HY000 / 2002)

Hello colleagues, please, if you can help me, give me the following error. Warning: mysqli::__construct(): (HY000/2002): Solo se permite un uso de cada direcci�n de socket (protocolo/direcci�n de red/puerto) in C:\wamp64\www\OnlineVentas\co...
asked by 10.10.2018 / 22:24
1
answer

Convert result Json objects in List Json ?, using php and mysql

PHP code to show results of a query to MySQL (returns json object) if ($result = $mysqli->query("SELECT ID,NOMBRE,NICK,PASSWORD,EMAIL FROM ud_Usuario")) { // check for empty result if (mysqli_num_rows($result) > 0) {...
asked by 16.10.2018 / 17:49
0
answers

How to activate and deactivate users in php or javascript?

I have a list of users or any other elements .. how to deactivate and activate these elements so that when I call from a form I do not appear     
asked by 02.10.2018 / 17:53
1
answer

Is it necessary to save the path of the image in the Bd to show each image with its respective id?

Currently I have a code that extracts the last image modification path of each user, this extracted from a folder and a subfolder created with the id of each user (files / id / imagen.jpg). I do not keep the last route in Bd. This is the code...
asked by 24.09.2018 / 19:04
1
answer

Incorrect datetime value

I am trying to insert some data by php into my database, when making the INSERT I get the following error: Error de MySQL : 1411 : Incorrect datetime value: '21/09/2018' for function str_to_date. I leave the insertion code: $SQL = "INSER...
asked by 21.09.2018 / 16:22
1
answer

How to validate php record that does not repeat? [duplicate]

Good morning: I am creating a file in php that connects to a localhost, what I need is to make it validate in the localhost that there are no duplicate records, the validation I have to do with the rfc (Mexican) since it is a unique value. I r...
asked by 19.09.2018 / 06:01
0
answers

Display data of an ID from a foreign table

In this second opportunity I consulted a problem that I have when wanting to show specific data of a foreign chart for an ID. Waving more in detail, my web application is a database of entry of detainees (in Table 1 register the personal and...
asked by 25.09.2018 / 02:48
0
answers

How to implement a confirmation before executing an UPDATE

I have the following code: //APROBAR PAGOS MENSUALIDAD function aprobar_pago_mes() { global $db; $idusuario = ($_GET['id']); $sql = "UPDATE pagos SET status_pago = 'APROBADO' WHERE id = '$idusuario'";...
asked by 18.09.2018 / 21:36
0
answers

Pass id value of a button to a mysqli php modal

I'm trying to pass a value from a button to an editing modal, the development I'm doing in php and mysqli the outputs are giving me a perfect way and the idea is not to leave the same page. to make modifications of the users, but I have found th...
asked by 16.09.2018 / 17:29