Questions tagged as 'php'

1
answer

Extract two fields from a SQL table with JOIN in PHP

The problem is this, I want to get 2 fields out of a table. This is the part of the page that should show the results. Here is the code for that part: <div class="panel panel-info"> <div class="panel-heading text-center...
asked by 30.05.2017 / 02:09
2
answers

List query in MySQL

I am trying to perform a MySQL query from CodeIgniter, and the query goes fine but I would like to add a field within the select that counts the records that the query returns. SELECT r.fecha_inicio, r.fecha_fin, c.Nombre as cliente FROM reser...
asked by 30.05.2017 / 00:55
1
answer

PHP - loadHTMLFile () does not load the html document

I am trying to modify the code of an html page after filling out a form with the new data that has to be displayed. When I save the form I am directed to a php file to save the changes in the database and from there access the .html file to modi...
asked by 11.05.2017 / 10:01
2
answers

error can not be converted String to JSONObject android studio when trying to update

PHP PDO Code <?php require('conexion.php'); $Code=$_GET['Code']; // Consulta de Usuarios en la base de datos $consulta = "SELECT Code, User, Pass, Tip...
asked by 12.05.2017 / 18:42
1
answer

Bring data according to the ID of an option or a button of a list

Good community, Beforehand, Thank you for taking your time to read, my query is as follows: I have a table that contains some data: [] And a button to load a modal window: But it is possible to bring the data according to the I...
asked by 20.05.2017 / 16:23
3
answers

because the variable "valuation" tells me that it is undefined (php)

This is the error that appears to me:    Notice: Undefined index: valuation in C: \ xampp \ htdocs \ FAVORITES \ deletefavorito.php on line 14 My code: <?php session_start(); $conexion = new sqlite3('favoritos.db'); $usuario = $_S...
asked by 31.07.2017 / 14:28
1
answer

Mailing to all my registered users

I want to send an email to all my registered users at the same time, but it only sends me to the last user. Here my code: include('php/connection.php'); $sql = "select email from usuario"; $rpt = mysqli_query($cn,$sql); while ($des...
asked by 28.04.2017 / 14:20
3
answers

Print HTML tags with PHP

I have this code: $html = array( '<div id="grupo"><span>5</span><p>Invitacion de boda calendario 1</p><p>Cantidad : 1</p></div>', '<div id="grupo"><span>6</span><p>Invit...
asked by 19.05.2017 / 19:31
2
answers

help login android studio, does not show values of $ user because it is not a JSONobject

PHP Code. <?php require('conexion.php'); $User=$_POST['User']; $Pass=$_POST['Pass']; $sql="SELECT User,Pass,TipoUsuario FROM tb_usuario WHERE User=? AND Pass=?"; $stmt = $conn->prepare($sql); if ($stmt->execute(array($User,...
asked by 17.05.2017 / 20:56
0
answers

Choose the view with which Word opens when exporting

I'm doing an export to Word with php, after making a question and this I have managed to do the export correctly. But I need a detail (for now, I think this topic will go long). When I open the exported word it opens in web view but I...
asked by 02.05.2017 / 10:14