Questions tagged as 'php'

1
answer

Separately capture sections that have a name, but do not match the next section

Text: I have the following text (where the match's will be made): Header 1 Codigo : c001 Nombre : Juan Total : 45,78 Header 1 c001 Nombre : Juan Cantidad : 23 Subtotal : 45.89 Total : 3410.67 Header 1 Codigo : c002 Nombre : Ana Tot...
asked by 22.03.2018 / 04:32
2
answers

Browse an Array Saved a Query in PHP

Greetings to all, my subject is the following, I have saved a query $datosMotivos= array(); while($row = mysqli_fetch_array($result)) { $cod=$row['cod']; $descripcion=$row['descripcion']; $motivo=$row['motivo']; $lugar=$row['lugar']; $dato...
asked by 21.11.2016 / 05:37
2
answers

ERROR IN: Call to a member function fetch_assoc () on a non-object in

I'm trying to install crea8SOCIALPRO V6.2.1 , but when I install the db redirects me to    Call to a member function fetch_assoc () on a non-object in   /public_html/includes/core.php on line 1015. This is the code that gives...
asked by 15.11.2016 / 07:43
2
answers

Calling Ajax does nothing

I have the following code, but when I click on the "Next" button, nothing happens, I can not find what my error would be. javascript $("#btnSigModif").click(function(){ $.post("../Logica/getdataCargarDatosPreIns.php", {"NroSol":$("#N...
asked by 12.06.2016 / 02:05
1
answer

Error when inserting in the Sql Server 2016 Database?

I have tried to store values in my database and I have run into a problem I am handling Laraver 5.5 and SQL Serve 2016 "message": "SQLSTATE[23000]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]No se puede insertar el valor NULL en...
asked by 13.06.2018 / 17:37
2
answers

Convert string to object or array in PHP

This string returns it when you send the data to a provider: string(474) " { "status":"success", "Data": { "RazonSocial":"Ferreteria Perez", "RFC":"XAXX010101006", "Calle":"Av.Juarez", "Numer...
asked by 11.10.2018 / 07:11
2
answers

Can a timestamp format be done?

// $timestamp = ""; $datetimeFormat = 'YmdHis'; $date = new DateTime('now'); // $date->setTimestamp($timestamp); echo $date->format($datetimeFormat); The result of that code is: 20180411131121     
asked by 11.04.2018 / 13:12
2
answers

Validation of PHP fields

I already have my index in which I log in with username and password, the question is that when giving blank space in both fields allows entering the menu, some sentence in script or php to validate and prevent this happen? form code: <c...
asked by 19.04.2018 / 17:40
1
answer

Export html to word

Hello, I am trying to export certain HTML elements to word to generate a report and the user to download the document. After doing some research and seeing the same question in The English forum I found with this answer:    just keep follow...
asked by 25.04.2017 / 08:43
4
answers

Collect text with special characters from a form and insert them into a database

I would like to collect a text with special characters ('´ñ) of a form in html . This will change to codigo.php that will be responsible for inserting it into a database MySQL . The fact is that I have tried a thousa...
asked by 26.05.2017 / 14:33