Questions tagged as 'php'

1
answer

Error connecting php database

Hello good afternoon I have an error with my system is that I am changing to PHP 5.6 to 7.1 I get that error when I want to connect my database and I have no idea why I leave the source code here @$conectar = mysqli_connect($dbhost,$dbuser,$db...
asked by 13.09.2017 / 17:21
1
answer

Delete records that I have in the bbdd

function cargaPagina(pagina) { var desde = pagina * itemsPorPagina; $.ajax({ data:{"param1":"dame","limit":itemsPorPagina,"offset":desde}, type:"GET", dataType:"json", url:"Conexion_Contacto.php"...
asked by 13.09.2017 / 02:50
3
answers

execute a select sending parameters via ajax

I have the following AJAX code that passes variables from one form to another page and shows results. $(document).ready(function() { $('#form, #asigped').submit(function() { $.ajax({ type: 'POST',...
asked by 13.09.2017 / 13:09
1
answer

File upload to ftp through Ajax

Good morning. I'm trying to make a form that uploads files to an FTP using PHP. The problem is that the page is reloaded when the upload is executed. I know that in order to just cool an area you have to use AJAX, but I can not execute the uploa...
asked by 16.09.2017 / 11:26
2
answers

Performance of my website

Good community, In this way I use the sessions in the main file to differentiate the interfaces of a common user to an administrator, for example: <?php session_start(); if (isset($_SESSION['usuario'])) { if ($_SESSION['usuario...
asked by 19.09.2017 / 16:34
1
answer

Define array by Index

I have a multi array with data that includes dates, I want to do it is to pass that data to another multi array but sorted by month index, that is, if I have date 02/05/2017 in the other array you have to create the index 5 and put there all the...
asked by 18.09.2017 / 08:01
1
answer

Read array from a file in PHP with Laravel

I have an array saved in a file inside a folder that I created in the App called Arrays. It is the following: $contentTypeArray=array( 1 => 'TEXTO', 2 => 'PDF', 3 => 'PPT', 4 => 'AUDIO', 5 => 'VIDEO', 6...
asked by 12.09.2017 / 08:23
1
answer

Make fields of different tables appear in forms and queries

What I would like to do to help you understand better is the following: I have a client table with the following fields: IdCliente int not null primary key auto_increment; Nombre varcjar; Apellido varchar; Direccion varchar; Telefono varcha...
asked by 16.10.2017 / 02:13
1
answer

Check if there are users in the BD

I am checking if there are users in my BD through a form to enter the email and password. I check in a PHP file if the mail and the password exist in the database, but I get an error Undefined index: password and I do not know why. HTML co...
asked by 15.10.2017 / 10:52
3
answers

Error, Problem with XAMPP

I have this code in PHP: <?php include ('parametros.php'); $conexion = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); if (!$conexion) { echo "hay pedo"; }else{ echo "puro fierro :v"; }...
asked by 15.10.2017 / 03:00