Questions tagged as 'php'

1
answer

Add all the fields of the same column of several MySQL records

I have a table with several records, and let's say that each one collects the visits it has (for example). How can I get the total of visits? But not of all, but of those who fulfill a condition. That is, if I have: | Cat | Visitas...
asked by 28.10.2018 / 12:03
0
answers

Error 404 login form in PHP with MySQL

Very good. I've been trying for a few days to make a small page to add users to my database in MySQL. Before I can add the users, I have made another page where I must enter a login correctly so that it redirects me to the user creation form....
asked by 28.10.2018 / 15:18
1
answer

Uncaught Error: Class 'PDFMerger' not found in

I am trying to use this library to join several PDFs PDFMerger I have downloaded and added everything to my project, but nevertheless it throws me the error: "Fatal error: Uncaught Error: Class 'PDFMerger' not found in ... on line 32" He...
asked by 29.10.2018 / 16:15
0
answers

Instagram Endpoints

I'm building an application in PHP, and seeing that the Instagram API has changed. I need to give "me gusta" to a post with the authorization of my account. This publication of my other account, belongs to sandbox of the appli...
asked by 29.10.2018 / 16:09
2
answers

correct way to escape a script in an echo

You will see I can not successfully escape a script inside an echo, here is my code but I can not make it work, if any could give me an example echo ' // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').t...
asked by 27.10.2018 / 19:16
0
answers

Someone who has experience consuming Payment gateway Service of Master card

Someone who has experienced Master Payment card gateway service could help me with this error } My settings are as follows / possible values: // FALSE = disable verification // TRUE = enable verification $ configArray ["certific...
asked by 27.10.2018 / 21:02
1
answer

Pass a class attribute by reference to a local variable

How about people! I have a PrintServer with the software PaperCut PrintLogger which generates some CSV (and HTML) files with the printing log. I'm doing a script that reads the CSV in the data entered into a database, for further analysis....
asked by 27.10.2018 / 20:47
1
answer

Join fixes in PHP

I have a query that brings all the users of the database, but I need to make a comparison with another table in which there is no relationship. I do everything through php but I need to join the data from the other table with the first one, that...
asked by 27.10.2018 / 20:03
0
answers

Add array to another without creating indexes in PHP

I have a foreach () that in each iteration adds arrays of 40 elements to another array, as shown in the following code: foreach($aVideos as $aVideo) { $aVideosReproducciones[] = $this->obtenerReproducciones($aVideos); } Assuming th...
asked by 27.10.2018 / 19:12
1
answer

How can I send data from ajax directly to a php method?

// what I want to do is pass directly parameters to (method) that is in a .php file, the problem I have is that the parameters reach the file but the function does not directly affect them what should I do? // jquery.js file $('#distritos')...
asked by 26.10.2018 / 16:05