Questions tagged as 'php'

1
answer

Retrieve the ID of an insert in a table and use it to create a relationship with another table

Personal a big question, I'm developing a classifieds site, I'm recording the images and the ad at the same time, but the insertion queries are different, because the ad table and images are different, how can I do do the images added to the ad...
asked by 19.02.2015 / 23:35
1
answer

Image upload error: Undefined index [duplicate]

I have a problem trying to upload an image through PHP. Field in form: <input type="file" name="imagem" id="ff_imagem_serv"/> Then when I give submit it executes the code: $name = $_FILES['imagem']['name']; $tmp_name = $_FILE...
asked by 02.03.2015 / 23:53
1
answer

Using sessions in configuration file in CodeIgniter

In my project, I need to do some tasks, which depend on information that is in the database. I store this information in sessions, to use throughout my project. One of these tasks is to connect to several databases, and the information from t...
asked by 04.03.2015 / 13:13
1
answer

Process multiple concurrent requests and store in DB

I am dealing with a new problem due to some new challenges that I prostrate ... I have developed a registration system and obviously in the future it may come to have more than 100 registrations per day or even per hour or second. Thinking ab...
asked by 22.02.2015 / 13:37
1
answer

How do I search a file for an internal server?

I have a server running at home, where I keep some files. I wanted to have on my page, which is on an external server, a way to fetch those files. Does anyone know how I can do this in PHP?     
asked by 05.03.2015 / 16:45
1
answer

Return the data from one table if it does not exist in another

I have an environment where there are two forms of login and tables "Users" and "Establishments", these tables are very similar and I need to return this query based on the email typed in the login form. I'm trying to return by selecting direc...
asked by 22.03.2015 / 19:32
1
answer

FullCalendar duplicating record inserted in the database

I'm using fullCalendar to make an event log. But the following happens, if I click on a specific day a modal appears with form for me to save the data in the database, until then, it's okay to insert it into the database. But if I click o...
asked by 19.03.2015 / 18:57
1
answer

Error migrating from localhost to online server [duplicate]

When migrating an application in codeigniter from localhost to the server it appears me the following error    PHP Error was encountered Severity: Warning Message:   session_start (): Can not send session cookie - headers already sent by   ...
asked by 01.12.2015 / 21:12
1
answer

What tools / frameworks are available to create a restful API in PHP? [closed]

Is there any tool of this type that facilitates the development of a RESTful API? I've heard of the Slim Framework, but wanted to know more tools. ----- edited To be more specific, I want to make a RESTful API to grab data from a MySQL DB and...
asked by 17.07.2015 / 18:33
1
answer

I can not redirect to a new one tab within the same url

I'm a beginner in PHP and I'm having a hard time finding a solution to my problem. I have a main array with 7 arrays , with 2 fields each, which are tabs in one of the urls of the site. I need to click on the 'next step' button to be redire...
asked by 16.07.2015 / 13:21