Questions tagged as 'php'

3
answers

Error Access-Control-Allow_Origin not allowed [duplicate]

I'm trying to access another site from my program.php, but it's returning the message: XMLHttpRequest can not load In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' link ' is therefore not allowed acce...
asked by 09.06.2015 / 01:11
1
answer

Get URL parameters in PHP

Address http://exemplo/registrar.php For example, I would like to register by registrar.php passing data through bars. Example http://exemplo/registrar/nomedapessoa How could I do this in PHP?     
asked by 20.06.2015 / 20:21
1
answer

Pick up only the user's first and last name

Dear colleagues. How can I get a user's first and last name? I often use it as follows: $nomeUsuario = 'Francisco de Assis'; list($nome,$sobrenome) = explode(' ',$nomeUsuario); But this way I would get Francisco from and I would really...
asked by 10.06.2015 / 21:57
1
answer

Error when updating table in MySQL

Well folks, I have the error below, when trying to update in a table in MySQL and I do not understand why, I am correctly searching the data in the form, but even then, it does not let me do the update, which I do? <?php $link = mysqli_con...
asked by 12.06.2015 / 22:25
1
answer

Change field Automatically after filled in

I have a form: <div class="span12" style="padding: 10px;"> <form action="<?php echo base_url()?>index.php/chamadas" method="get"> <div class="span2"> <label for="">Data Inicial:<...
asked by 12.06.2015 / 00:06
2
answers

Completing form with AJAX and MySql

I need to complete a form, according to user demand, with information from the Database (MySql). Example: I have the fields "Institution", "Course" and "Period". For the user, firstly, only the "Institution" option will appear, once he has...
asked by 15.06.2015 / 19:35
1
answer

Change color pie chart php

Good afternoon! I'm creating a pie chart, the data I'm looking for from the database. But I do not know how to change the colors of the sectors of the pie chart, to make it clear I will show here what I want. Home The code is as follows:...
asked by 19.06.2018 / 14:18
2
answers

Help me with a foreach array php

Good afternoon, I'm using PHP's cURL to get a json from an api. Data is being stored correctly in a variable. But when I try to display the data with a foreach of the error in the line where the foreach is: The json that comes from the sit...
asked by 29.05.2018 / 18:53
1
answer

relate two tables listing only last php record

I have a template table as follows: | materia | provaID | matricula | questao | resposta | matematica 303 211834 quest1 A matematica 303 211834 quest2 C matematica 303 211834 quest3...
asked by 08.06.2018 / 02:32
1
answer

Delete in 2 tables at the same time in a single query

I have the following query : DELETE FROM emails,emailsacompanhamento USING emails,emailsacompanhamento WHERE emails.idEmail = emailsacompanhamento.idEmail AND emails.idEmail = ".$idEmail That makes a kind of JOIN in tables and...
asked by 25.05.2018 / 21:16