Questions tagged as 'php'

1
answer

Passing data by Jquery

I'm trying to pass some data via Jquery to another php page. I create tag < a > via echo : echo "<a id='".$feed_id."' class='like'> Teste LINK </a>"; • The variable $ feed_id should return a numeric ID (eg...
asked by 19.05.2015 / 00:31
1
answer

Generating HTML Page by PHP from the database

I'm learning php with mysql and I use wamp. I'm developing a site with only academic terms, and I have a problem: I have a database with 20 pilots, and every pilot has information like age, description, height, I was wanting to use PHP to mak...
asked by 23.05.2015 / 16:51
2
answers

PHP include with characters problem

I'm using include in two files. One file usually includes, however, the other one comes with problems in the characters, the " " character appears in the accents. But by opening the two files in notepad++ , they are normal, with acce...
asked by 18.05.2015 / 20:41
1
answer

Can the controller send email?

In a controller called activities, I have a method called reminder. This method, receives an id, searches for that activity based on this id and sends an email to the moderator of that activity with data of the same. Is this method with 'too muc...
asked by 06.12.2014 / 20:05
1
answer

Add required fields

I would like to know how to put the Name , Email , Password fields in my form are required to fill them out. Here is my code below: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title...
asked by 22.05.2015 / 15:18
1
answer

How to do search and show data

Well .. I need to do a search on a table and through that search pull the data from another. But I ended up losing myself in logic ... Example of what I'm doing: The user informs the data he wants: <td > <font >No...
asked by 22.08.2014 / 16:41
2
answers

Jquery: Fadeout (), fadein () and Ajax call do not work in the right time

Hello. I have this code in JQuery: $('#prods').fadeOut(300, function(event){ chamaM(id_m); }); $('#prods').fadeIn(300); ChamaM() is an AJAX function that makes a call to PHP code, displaying the c...
asked by 21.08.2014 / 22:20
2
answers

Command to create a website shortcut on your smartphone?

Require the user to create an icon for my site on the home screen of their smartphone. I need that when the user enters the site he receives a notification to create the icon. I need to know the command that does this. I already researched and f...
asked by 29.10.2014 / 16:48
1
answer

Force a 200 header in Ajax while the PHP function goes to sleep

I am creating a chat function, however, the server is waiting for a DB interaction for a period of 10 seconds. The problem is that while the Ajax connection is open waiting for a response within 10 seconds, the browser does not accept to swit...
asked by 23.10.2014 / 19:52
1
answer

How to handle the JSON coming from PHP with JavaScript [closed]

I have the following json who comes from the server: {"product":[{"descricao":"Xis Bacon","valor":"5.50","codigo":"1551","image":"http:\/\/www.lshtm.ac.uk\/its\/remote\/desktop\/icon___windows.png"},{"descricao":"Coca-cola 2litros","valor":"4....
asked by 31.10.2014 / 01:30