Questions tagged as 'php'

0
answers

Method calling method [duplicate]

By my knowledge I can only call the method of a class only if I instantiate or if the method is static! I can only do something like class->metodo('var') or class::metodo('var') . However, I've seen in some code something...
asked by 10.11.2017 / 03:09
1
answer

Make a link

How do I check if the link is already correct (eg link ). My application takes the text from a database, and there it can be written like this: "stackoverflow.com". How do I get the code to know if it already has, and if it does not add to t...
asked by 21.11.2017 / 04:45
1
answer

Doubt about the error "Strict standards: Only variables should be passed by reference in"

To write some dates in the database in the desired format I'm doing this: mysqli_stmt_bind_param ( $stmt, 's', date("Y-m-d", strtotime($data)) ); Or, to get the current day simply: mysqli_stmt_bind_param...
asked by 22.10.2015 / 19:38
1
answer

Google line charts does not appear the line

I'm trying to generate a line chart like Google charts but the lines do not form and I do not know why. The chart up appears with the captions most does not work below my code (the button that calls the chart): $("#config2").on("click", fu...
asked by 06.11.2017 / 23:49
1
answer

How can I relate tables with return in json with php?

Please help me, I'm new to programming and I need to do a MySQL table relationship, with return in JSON , I tried the following code but it is with errors. I've done a lot of research on Google and Youtube , but I could not find anything lik...
asked by 06.11.2017 / 02:19
1
answer

Paging of records

I'm trying to create a table inside a modal window that is triggered / opened as the user clicks a button, but due to having too many records it's slow to open so I thought about paging. Could someone show me some example? <!-- INICIO D...
asked by 07.11.2017 / 17:35
0
answers

Save instance of class

I'm new to programming, but I have a problem that I can not solve. How do I do in PHP to save an instance of a class? Because currently I instantiate a class and after the script stops executing, all I assign is lost. And I have to instantiat...
asked by 25.04.2018 / 17:33
1
answer

Query between Mysql dates showing every day of the range

Hello, I would like help with logic. I have an ecommerce system in which N products are sold and I am comparing the sales of a certain product per period of time, ie the admin will have an area in which he chooses a product and a date range (...
asked by 27.04.2018 / 03:37
0
answers

Redundancy with codeigniter + mysql

I have a question, let's start in a system the question of database redundancy, but how will codeigniter know that there is another base if the main one is inactive? Is there anything appropriate for the codeigniter to identify this second ba...
asked by 27.04.2018 / 19:23
0
answers

Laravel multitenancy with a BD only for users

I've been searching for Saas and Multi-tenancy but have little material in Portuguese. I saw that it is possible to do a database for each company, but my question is: Make a single web system for all clients (using PHP + Laravel + MySQL)...
asked by 26.04.2018 / 15:32