Questions tagged as 'php'

1
answer

Send error message when entering incorrect data in login with php

I'm new to this php. I successfully made a login in php, I can enter my data and validate it to see if the correct data is in the database. But when I enter some incorrect information, all it does is send me back to the login page (login.p...
asked by 02.05.2018 / 00:04
2
answers

SOAP-ERROR: Encoding: object has no 'any' property

I am quite complicated doing a requirement to a webservice with PHP Soap. The requests in which I consult data work well, but there is one that makes a reservation in a hotel and throws me the error SOAP-ERROR: Encoding: object has no 'any'...
asked by 15.04.2018 / 18:09
3
answers

Compare value of a select with a value of an input using if-else

I am a newbie programming in PHP and I need to make a form using if-else where the user enters the value of a product and choose a payment plan of a select to calculate the interest and total amount. The plans are as follows: panel A iter...
asked by 15.04.2018 / 01:05
1
answer

error with try cacthen php

I'm doing a login to validate the user, but when I use the instructions try and catch of php I get an error. I have tried many ways but I still do not make it work, my code: <?php { try{ echo entero('string'); $...
asked by 12.04.2018 / 16:09
0
answers

Loading MySql data with php and ajax

First what I have done: On the web I upload a file.csv to the server and then upload it to a table mysql . What I need: Once the data is already in the table, process it. As the data is a lot, sometimes my idea is the following (it...
asked by 12.04.2018 / 20:46
0
answers

I would like to know how to enter the result of a postgreSQL query in another totally different query from a PHP script

<?php require_once("conexion.php"); $dbconect=new conexion(); $dbconect->conectar(); $nombre = $_POST['nombre']; $apellido = $_POST['apellido']; $cedula = $_POST['cedula']; $user = $_POST['user']; $pass = $_POST['pass']; $fecha_nac = $_...
asked by 28.03.2018 / 15:08
1
answer

convert file content to array

I'm having problems when I convert a csv file to an array. You see, I created a function that makes that conversion and returns the array. The process does it relatively "well" and it generates the array but fix as it is the resulting array:...
asked by 07.04.2018 / 02:47
0
answers

How to perform the relevant calculations in this PHP script?

I have a PHP script to make calculations of a few linear meters, square meters, etc. The risk is that these calculations are taken from an excel spreadsheet and I have exchanged the values of the names of the cells by the $_post[''] that...
asked by 09.04.2018 / 08:27
0
answers

php sleep and execute a function once

I have a question, I have a cron that runs every minute and calls a function, but that function needs to run wait for 20 sec and run again, that is, just twice How can I put a sleep (20) and execute that function again, but only once cron:...
asked by 28.03.2018 / 18:35
1
answer

how can I add some data

I have the following question. I'm doing a reservation system for hotels in PHP. in some dates the price increases and in others it decreases, now I have brought that from the DB but I want to know how to add the normal prices: $ PriceSystemA...
asked by 01.04.2018 / 15:20