Questions tagged as 'php'

1
answer

SQL LIMIT always returns the same last 3 records

I have a problem with a select. I have the following table id id_de id_para mensagem --- --------- ----------- ----------- 1 10 20 Oi David. 2 20 10 Oi José 3 10 20...
asked by 18.06.2015 / 02:03
1
answer

How to change background of an image in CSS code with PHP

I would like to know how I can do the following to change the background of a background image img in css by day of the week, or from Monday to Sunday so that for each day of the week a different image in the background appears in the background...
asked by 14.06.2015 / 22:58
1
answer

Header does not work

Good People, I have a file in php that is called after completing a form in an html file. The function of this php file is to add data in the database and after inserting it has the following code: if(mysqli_query($con, $sql)){ echo...
asked by 16.06.2015 / 16:50
1
answer

How popular select with 2 json parameters

I'm making a form, and I have not found anything similar in the searches I've done. I have the code link I am getting popular they usually, When selecting a date, it populates the region, when the popular region populate a professional,...
asked by 18.06.2015 / 06:04
2
answers

How to login with php and session in ionic?

I'm making a mobile application with ionic and I need to login to external database users, I need to know how I can login through php and create a session with id of user ?     
asked by 05.08.2015 / 16:17
1
answer

Upload page via load with problem

I want to load a page inside a div via load by passing a variable that will define the content of the page to be loaded. My code: index.php <!DOCTYPE html> <html> <head> <script type="text/javascript" src="//ajax...
asked by 06.08.2015 / 18:34
1
answer

Resolve Undefined namespace Mailer CakePHP 3.0.3

I'm trying to create a Reusable Email provided by CakePHP 3 but even following the documentation but I get the following error: use Cake\Mailer\Mailer; Error:    Undefined namespace Mailer       Referenced namespace is not found....
asked by 06.08.2015 / 16:43
2
answers

How to deploy with Wordpress

I want to increase the agility of my projects with Wordpress . I usually use git only in themes. When everything is ready, I upload the theme in the traditional way, via FTP. Of course, I know it's wrong and that's not the way to go...
asked by 28.06.2015 / 15:00
2
answers

Pass parameters via GET and include more parameters

I have a query page, where you can include several parameters in this query. I would like to concatenate more parameters if parameters already exist in that query. In short, take the parameters that already exist and concatenate if the user choo...
asked by 03.07.2015 / 19:50
3
answers

Execute php code inside a variable

Good evening personal You can run this: <?php $variavel = 'foreach($v1 as $v2){echo $v2;};'; echo $variavel; ?> Or is there anyway to run a class inside a variable (a function I know it has): <?php $variavel = 'class teste(...
asked by 19.06.2015 / 02:27