Questions tagged as 'php'

1
answer

How to export to Excel with php and Sql Server 2008

I want to generate an excel report of my markup query. but I could not. I get the following error in the excel. <b>Fatal error</b>: Class 'Conexion' not found in <b>C:\xampp\htdocs\intragarzon2.0\formatosTH\marcaje\core\b...
asked by 17.05.2018 / 14:10
1
answer

UPDATE does not execute anything in PHP

On the page when the user gives you to save changes in the form: echo"<form id='contact' action='actualizar.php' method='post' name='actualizar'>"; echo "<fieldset>"; echo " Nombre:<span class='obligatorio'>...
asked by 23.04.2018 / 21:36
2
answers

Trying to get property of non-object in line 18

In the line that there is error is in this: if ($resultado->num_rows() > 0) ... This is my code: <?php $mysqli= new mysqli('localhost','id5840508_root','******','id5840508_hospital '); $salida=""; $query="SELECT*FRO...
asked by 20.05.2018 / 21:30
1
answer

dates timestamp problems when converting

I have stored the "dates" (it is a varchar) and I need to take it to another format to do operations, and many poor options and the one that seemed to help me dateformat arrogates values to me in zeros, I also have to keep the hours and minutes...
asked by 19.04.2018 / 18:35
2
answers

Pass bootstrap values to PHP

I have downloaded a template with bootstrap in which there is a FORM type part that consists of the following: <div class="share-desc"> <div class="share"> <p>Number of units :</p><input type="number" class="tex...
asked by 02.11.2016 / 10:53
1
answer

call of a function from another php file

$bd= new DB(); $conectar = $bd->conectar(); function extFolio($folio) { $query = "select FolioParticipanteCG from participantes where FolioParticipanteCG = '".$folio."'"; $folio=mysqli_query($conectar,$query)or die("Error al selecci...
asked by 07.06.2018 / 20:26
1
answer

Pass dynamic array by AJAX

EDITED I am trying to send the following data with AJAX var datosInsert = JSON.stringify({ 'datosCarga': valoresEntrada, //[1,2,3] 'loteCaja': fieldLote, //101 'cajaLote': numeroCaja //1 }); $.ajax({...
asked by 21.02.2018 / 00:11
2
answers

Insert data with iteration in php

I have the following function in the model that I want to enter in the database: public function agregarBolsasModel($datos, $tabla){ $stmt = Conexion::conectar() -> prepare("INSERT INTO $tabla(lote, caja, bolsa)VALUES(:uno1, :dos2,...
asked by 21.02.2018 / 04:17
2
answers

Two columns with the same name

I have a problem with the query I'm doing, when joining two tables with a join I do not see a column because they have the same name. I tried to use a select as I normally do in sql but it still does not appear. $user = DB::table('app_registro...
asked by 19.02.2018 / 14:29
3
answers

Search for consecutive characters in a PHP string

Hello I want to search within a text string, consecutive characters such as: qwerty, ertyu, tyuiop asdfgh, dfghjk, fghjkl zxcvbn, xcvbnm minuscuslas o capital letters indistinctly. Thank you.     
asked by 09.08.2018 / 03:57