Questions tagged as 'php'

1
answer

Save several attributes to the same object in Laravel

I have a property table of other properties and created a property_table_table since an property can have several attributes. I have created the models Imovel and Attribute, I need to create an Imovel_atributo model? How could I do in the store...
asked by 30.11.2016 / 17:18
2
answers

Use Node.js and PHP on the same server (Amazon EC2)

My site is made "totally" in PHP and I used Node.js for the real-time chat part. I'm using the AWS services and I had a big question: Can I install Node.js in the same instance of PHP (apache) or should I create an instance for Node separatel...
asked by 10.11.2016 / 17:28
2
answers

How to generate an array of years dynamically containing the index as the year and the value as the year itself?

I have a routine that generates a list of years dynamically from an initial year defined in the array which in this case is the year 2015 up to the current year. View array structure: $rray = array( "1" => "2015" #Ano inicial...
asked by 02.02.2017 / 19:58
1
answer

Help with e-mail form in steps

I'm sorry for the inconvenience, I'm creating a 3-page email form with 3 pages and each one is typed in the input, I've already read the session tutorial and I'm not able to print the first and second page data at the end. send the email, what w...
asked by 22.06.2016 / 17:47
1
answer

Is it indifferent to use SQL Server or MySQL with PHP?

I'm setting up a medium project and I'm going to model the database, then create the tables, the procedures , and the database itself, of course. I would create everything with MySQL, but by already messing with SQL Server, I thought I could us...
asked by 22.07.2016 / 19:47
1
answer

Presentation of the php query

I need to help me create a function in php that lists multiple tables in a row with multiple columns, depending on the amount of records in the database and the spacing of the tables defined by <div class="span"> This is my role,...
asked by 11.06.2016 / 10:52
1
answer

Skip to next business day if the date falls on a weekend

In PHP, I have a certain date, coming from the database, which is the date a request was made. I need to add 5 business days to this date, which is the deadline for the request to be delivered. At this count I need to ignore the weekends....
asked by 27.07.2016 / 17:41
2
answers

Comparison between 2 equal numbers returning 'false'?

I have the following code: <?php var_dump($fullprice) ?> <?php var_dump($cart->getData('subtotal')) ?> <?php var_dump($fullprice == $cart->getData('subtotal')) ?> $fullprice returns the sum of all products a...
asked by 05.05.2016 / 16:23
1
answer

Wordpress search display

Talk to friends, I would like to know if you have any way to view the search made on a wordpress site like this: Post ="x" format, and Page =" Thanks!     
asked by 02.06.2016 / 20:38
2
answers

Is there a difference in using constants or variables in Classes?

Is there a difference in using constants or variables in Classes?     
asked by 09.06.2016 / 15:23