Questions tagged as 'php'

0
answers

Make a table or make a query whenever the user enters?

Suppose we have 2 columns of thousands of records and we need to count them and then show the total to the user, the question is should I recount them every time I visit the page or should I make a special table that has the already counted numb...
asked by 02.09.2018 / 16:28
0
answers

When I consult an SP with PHP-SQL Server-PDO and use output variables plus set of results. The variables return empty

I'm having two problems so to speak with PHP - SQL Server . I am trying to work stored procedures with PHP using database SQL Server . I put the code PHP with PDO : $opciones = array( PDO::ATTR_PERSISTENT => true, PDO::...
asked by 30.08.2018 / 21:02
0
answers

How to make a dynamic url in Codeigniter?

I'm making a sale that inserts and updates me in my database, but when I want to delete one of those records I do not know how to do it so I can identify the function to go to the DELETE of my driver Control I have this from the side of the...
asked by 30.08.2018 / 22:09
0
answers

Problem to register a data Foraneo

I tell you I have a problem to insert the following data and it shows me the following error and I do not know how to solve it    Error paying parkingSQLSTATE [23000]: Integrity constraint   violation: 1452 Can not add or update to child row:...
asked by 29.08.2018 / 16:20
1
answer

error 400 bad request in Ajax with admin_ajax from wordpress

It turns out that I'm doing a Wordpress plugin in which I need to make an AJAX for the file "admin_ajax.php" of Wordpress, but when I send the request, the client gives me the error 400 (bad request) and I do not understand why what reason...
asked by 29.08.2018 / 16:39
0
answers

Print a DIV from jQuery with CSS and in A5

I try to print a div, from jQuery, in the following way: function printDiv(divVer) { var printContents = document.getElementById(divVer).innerHTML; var document_html = window.open("_blank"); document_html.document.write( "<html&...
asked by 29.08.2018 / 16:39
1
answer

Log in with email or username Codeigniter

Good afternoon I need to login or with the email table or username I am not finding in which area I should add the fields The Login.php driver <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Lo...
asked by 29.08.2018 / 17:31
0
answers

No Load PDF when image is very large

I am generating a PDF with Laravel's DOM-PDF but I have a problem when the image weighs a lot, it does not generate the PDF but it sends me an error that the site can not be accessed, followed by the base64 code     
asked by 30.08.2018 / 00:29
0
answers

Get best-selling products of the week CodeIgniter

I have this function in the Model, it is about the sales, but this makes reference to the table detalle_venta, which contains the products that were sold, then what I would like is to know how I can formulate the query so that I get the latest 5...
asked by 30.08.2018 / 05:46
0
answers

upload pdf files to a folder and mysql

good day ... I'm new to the group I just want to bother you with an opinion or advice, I'm designing a software where I can upload to a certified database of different types; I have a registration form where according to the client and type of c...
asked by 30.08.2018 / 00:57