Questions tagged as 'php'

2
answers

Autocomplete conditioned using JQuery

Greetings, I am developing a form where the user searches for a place and a work center using Input Text with Autocomplete in < strong> JQuery , but since there are many records in the database, I placed a Select that shortens the sear...
asked by 27.09.2017 / 18:34
2
answers

Error checking user in BBDD

I am developing a website that when entering the username I want to know if it exists or not. To do this, js picks up the input variable and sends it via POST to PHP jQuery(function ($) { $('#id_del_referido').blur(function(){ $('#Info')....
asked by 01.10.2017 / 13:52
2
answers

Check fields and stop sending form

I have a form that checks the value of two textboxes, if they are different it shows the message that one of the fields should be fixed, but even so it sends me the information fulfilling another class, here my code: This is the one that comp...
asked by 18.10.2017 / 02:45
1
answer

How to open and display directory images with php?

Hello everyone trying to protect my images I created a .htaccess file in my image directory, this is my code: order deny,allow deny from all But I have noticed that I can still access my images with the fpdf library that has a function call...
asked by 22.10.2017 / 22:17
1
answer

Error in html form to php

I have the following form on my index.html page <form method="post" action="correo.php"> <div class="form-group"> <fieldset>...
asked by 19.10.2017 / 21:12
5
answers

Send NULL to the BD field

I'm doing an exercise with PHP and MySQL where I make a form with a series of data. The telephone field allows null, so the user leaves it blank in the database I want it to be saved as NULL but I left a blank space. Image of the BD:...
asked by 18.10.2017 / 18:16
1
answer

In PHP is it possible to recover the values deleted with unset in another array?

I was testing the function of Jack P. , in which, given a $arrOriginal and a $arrRemover it is possible to obtain a $arrNuevo without the keys indicated $arrRemover . But, if I would also like to recover the value...
asked by 13.09.2017 / 02:15
1
answer

Encrypt in javascript and decrypt in php

I have the following question about this php code: <?php class Encrypter { private static $Key = "dublin"; public static function encrypt ($input) { $output = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5(Encrypter...
asked by 14.09.2017 / 19:56
2
answers

Problem of Cors, in Ajax with PHP

Does anyone know why this error originates? I'm calling a file via ajax, and that's what's on the console. The caller and the receiver are in the same domain. what you are calling is a list for a select, if I open it from the direct URL if the l...
asked by 13.09.2017 / 23:06
2
answers

Unable to obtain mysqli PHP Error

   I'm using the global function $ with; and the error went but I do not know if   it's okay to use it in each function and if PHP5 works the same   well that in PHP7 Error:    Warning: mysqli_query (): Could not fetch mysqli in C: \ xamp...
asked by 13.09.2017 / 19:44