Questions tagged as 'php'

1
answer

Sort upload php files on my FTP Server

Hello, it is possible to upload files and that the php code will order these files in numbers. That is, for example I upload many repeated files, others not repeated, and the php code will rename me by numbers in order 1.2.3.4.5.6 .... etc and t...
asked by 10.10.2016 / 16:10
5
answers

Avoid double login

I'm having a problem with double logging. I want that, when a user is logged into a browser and wants to log in with the same account in another browser, this one does not allow it. How can I do it in PHP? This is my session code: $user_...
asked by 14.10.2016 / 09:42
2
answers

How to edit a url with JS?

In the JS that I am developing, I must enter and / or use a url dinámica in case the project name changes ... For this reason, try using the following: alert(window.location.pathname); which shows me the following /proyecto/ind...
asked by 06.04.2017 / 15:18
1
answer

How to take the value of two selects with the same name and that php receives them?

How could I take the value of two selects for PHP to receive them to be able to make a foreach and insert it in the database? since what is required is for a user to have two roles at the same time. that is to say that in...
asked by 06.04.2017 / 23:21
1
answer

Place message of "No records exist" in statement prepared using search filter

Create a search filter using prepared statements (this checks which fields are empty or not in the search form and adds the variable representing that field as a AND for the query SQL , so that it builds the query: "SELECT * FROM...
asked by 06.04.2017 / 15:19
1
answer

Save the webcam video on the live server

I want to upload the video that records the webcam to the server. Now what I do is record the video and once the recording is finished upload it whole, to record it use RecordRTC, in addition to HTML5 and Javascript. What I want is to upload it...
asked by 27.07.2016 / 12:33
2
answers

Download a file from a folder on a server via php

I have this table in php and I want to press the Folio Num to download the file ".xls" from the server with the name according to its Folio for example, "If I press the folio 130, I have to download the file 130 .xls " This is my code:...
asked by 29.07.2016 / 22:01
2
answers

Problem preventing registration of duplicate users PHP - MYSQL

I have an Android application where I access a MySql database by php. I am trying to make that when a user tries to register and already exists, he does not insert the data into the database. The problem is that by putting the if th...
asked by 07.09.2016 / 12:00
1
answer

When deleting the record from a nested table, it is deleted from a list, but the main table leaves its data in it

I have a list of data showing the title of a project (project table) and the students (student table) that are registered in it, these being stored in a nested table called Proyecto_Alumno. I have the option of modifying and deleting the stud...
asked by 08.09.2016 / 18:36
2
answers

I can not insert encrypted content to database

I am working on a PHP class to encrypt information, but the result of the encryption, has characters like Ѡ�Hf�{h������ not allowed in the insertion to my database with MySQL. This is the PHP class: <?php /** * A class to handle sec...
asked by 24.08.2016 / 03:30