Questions tagged as 'php'

1
answer

Apostrophe causing error when inserting data in MySQL

I am a beginner in PHP and I am creating a personal project to consolidate my knowledge until I came across a problem, when entering a name that has an apostrophe this apostrophe causes INSERT INTO not to execute causing the data are not...
asked by 09.03.2015 / 17:24
1
answer

Communication between JAVA reporting software and main software in PHP

I thought a lot if it would open the question or not (it may be out of scope or broad or based on opinions), but as I have many questions regarding the use of a correct structure and that meets my need I decided to open. Let's get my need....
asked by 19.03.2015 / 18:31
3
answers

What can change with the implementation of variadic function?

PHP 5.6 has implemented a feature called Variadic function . It's like infinite arguments. They can be used both in the declaration of a function and for the call. Examples PHP 5.6 Example in the declaration: function test($arg, .....
asked by 27.02.2015 / 14:14
2
answers

Getting information from the database without refreshing the page

I have a system in which it takes information from the database. And this database is getting direct data, so I wanted to know how to get this data and display it on the page, but without this page being updated. This system is in php.     
asked by 12.06.2014 / 16:24
2
answers

Generate final HTML in PHP or JS?

What is the best way, the best performance, to generate the final HTML. Direct on server-side or receive the database data and generate HTML on client-side ? In the development of my current application, I came across this doubt, by receivi...
asked by 11.06.2014 / 17:13
1
answer

Event in date and time expiration - PHP

My question is this: I created a function in PHP to check the current date and check the deadline for the end of a contest. But the end of this contest will have a specific time, and I do not know how to limit the date along with the time. Th...
asked by 09.06.2014 / 17:33
2
answers

Check fields when giving submit and case error return to field

I have a very extensive form and I would like to click submit and the field is in error, that the page can scroll (jQuery) to this field so that the person knows exactly what has error. I started like this: $("#sdEmpresa").removeClass("hidden"...
asked by 13.08.2014 / 04:13
3
answers

MYSQL How to put this date field in order

I have a date campom with all my date separated and I need to put in order as I do..get example that is not working ... $query = mysql_query("SELECT * FROM 'mensagens' ORDER BY 'ano','mes','dia' ASC") or die(mysql_error()); It leaves in ord...
asked by 07.04.2014 / 03:26
1
answer

Querying on specific WordPress table?

How do I query a WordPress in a specific table, which is: wp_dd_spg_galleries ? I already have the gallery ID, I tried to make this query, but it does not return anything: $query = "SELECT * FROM wp_dd_spg_galleries WHERE id = ".$idGa...
asked by 17.04.2014 / 22:52
4
answers

Problem in CSS and JS path in MVC project

I'm building a php application with MVC, the problem is when accessing other directories through the URL, eg: mvc / user now: mvc / user / create (here the sheet of css styles and javascript are no longer found), what is the best way to fix th...
asked by 06.04.2014 / 02:33