Questions tagged as 'php'

1
answer

The value of the output is always null. PHP and MySql

I have a problem. The procedure returns an output value (boolean type) and when I pick it up in the php code it is always null. Any solution? Thank you! MYSQL STORED PROCEDURE: BEGIN IF EXISTS (SELECT * FROM cliente WHERE usuario...
asked by 27.11.2018 / 17:55
1
answer

Problems when addressing with jQuery, the variable arrives without value

Good morning classmates, I'm doing a web program and I have a problem sending a variable via jquery and javascript. I have the following method that redirects and sends a variable by this address: function consultarPaciente(){ ur...
asked by 26.11.2018 / 23:29
2
answers

why does it give an error on the PhP line?

The code is the following one I am doing after consulting from mySQL. <?php include_once "conex.php"; $resultado1 = mysqli_query($conexion, "SELECT nombre_esp,cantidad FROM sr_productos WHERE id = (SELECT id_producto1 FROM sr_escalas_detal...
asked by 26.11.2018 / 22:08
1
answer

PHP / MySQLI Syntax Error

What happens? I think it's well built, but obviously something is missing. Name of the Table: citas Field Name: idcita, horacita, diacita, asuntocita    Query Error 1064 You have an error in your SQL syntax; check the   ma...
asked by 14.11.2018 / 14:17
1
answer

Login and php addressing problem

my problem is that at the time of entering the login (with the correct data) redirects me back to the index of the login to enter, and when I modify the header (location: index1.php) send me to index1 which is the one I want but it does not let...
asked by 15.11.2018 / 21:17
1
answer

How could PHP or JavaScript load dynamically?

Hello, I am trying to create a class with a method in which I can load js and css dynamically.    The problem is: since some PHP documents are in the root folder and others are in a sub-folder, the path of the js file changes depending on whe...
asked by 07.12.2018 / 00:07
3
answers

I have this problem Php Fatal error: Uncaught Error: Call to undefined function mysql_fetch_assoc ()

Hi, I have this problem with my php, which has not let me continue, in which I get the following error.    Fatal error: Uncaught Error: Call to undefined function   mysql_fetch_assoc () in   /storage/ssd1/730/8168730/public_html/Ingresar.php:...
asked by 08.12.2018 / 15:42
2
answers

Add PHP Array data

I have the following arrangement: (this data is sorted by invoice but could be scrambled). $datos =[{"factura":88,"total":41587.3942},{"factura":88,"total":43.01},{"factura":88,"total":1472},{"factura":88,"total":117.98},{"factura":88,"total":...
asked by 08.12.2018 / 00:07
1
answer

Property value in an html textarea?

Because my question is if it is possible, I have this code from a form that collects data and since all the values are assigned less in the textarea, check that the variable is not empty. $eq_vehiculo = $equipamiento; echo "<script>alert...
asked by 05.12.2018 / 04:10
2
answers

Can DIE be done in mysql connection? To show if I connect or not

I want to make a testing website. Connection PHP I have the following code: <?php $conexion = @mysqli_connect("localhost", "usuario", "contrasenia", "database"); if (!$conexion) { printf("Error de conexión.", mysqli_connect_error()); }...
asked by 24.12.2018 / 01:19