Questions tagged as 'php'

1
answer

how to create conditioned search syntax in select

It turns out that I want to do a search through ajax where I have three fields one is idpaciente another is cedula and the other is name. What I want to do is to search first by idpaciente if it does not find search by cedula and if it does n...
asked by 13.04.2018 / 12:21
1
answer

Fatal error when generating excel with PHPExcel and SQL ... "Call to a member function query () on a non-object .."

My problem in particular is that I must generate an excel [.xlsx] (use PHPExcel) with data from SQL Server with PHP. The script that I edited already existed with MySQL statements and it worked perfectly, but when I change the sentences by SQ...
asked by 13.04.2018 / 13:53
0
answers

Anndroid App + PHP + MySQL

I'm doing an app for Android that makes a login to a server in MySQL , it must first go through a php file where it connects to the server and picks up the user and password of who is going to login. I made the php file that connects to the s...
asked by 16.04.2018 / 11:20
0
answers

Check dates Postgres

I need help with a query what I want is that I need to calculate the months of a worker of a company and add them with all the other contracts he had. EJ: If you started working on a date like 06/15/2016 until 06/15/2018 (24 months), but...
asked by 16.04.2018 / 14:14
1
answer

Hide URL SonataBundle / Symfony

The problem is that I have a page which always shows "lapagina/web/app_dev.php/ES/" in the browser, regardless of the template you are viewing, when I add the "admin" lapagina/web/app_dev.php/ES/admin , load the dasboard of the Sona...
asked by 16.04.2018 / 09:48
1
answer

Execute two different functions

I am faced with the need to execute two different functions, one of them carries a href which is where I get the ID from a mysql table and the other function is the one that eliminates that record. I do not know much about the truth and this cod...
asked by 10.05.2018 / 11:19
0
answers

Error creating backup with mysqldump in php

I'm trying to make a backup of the database from php. This is the code I use: $Copia_Archivo = $RutaDocumentos."/Copias/backup-" . date("d-m-Y") . ".sql.gz"; // comandos a ejecutar $Comando = "mysqldump --host=".$_SESSION['Servidor']." --u...
asked by 11.04.2018 / 16:03
0
answers

Problems with my web app once upload to the server

I will try to be clear, I have developed a multi-client web app, I do not know if it is correct to call it. The issue is that the app of the user part does not find the files of styles, images among others, etc. The structure of the app consists...
asked by 11.04.2018 / 16:05
0
answers

Register mysqli in php

Hello friends, I have a question. I have a table with data that matches and data that does not. I want to know if I can record a comment for those who owe and save the data in another table called debt. and that pressing a button (validated) wil...
asked by 11.04.2018 / 18:57
0
answers

Json null, an object was expected but it was a string (android studio)

When I try to register or login a user using a database (php) in android studio I get the following error in the logcat: java.lang.illegalstateesception expected begin_object but was string (Android Studio). Also, in the logcat I can observe the...
asked by 22.04.2018 / 10:10