Questions tagged as 'php'

1
answer

Problems installing Composer on Windows

I'm trying to install Composer by this tutorial in Windows, but I'm having problems downloading both by PHP as by cURL.     
asked by 19.12.2015 / 08:24
1
answer

Better performance / performance: Smarty, Twig or some other? [closed]

While in general PHP systems are used for other purposes, such as separating business rules, etc. Which one provides the best performance for website load / performance? Currently, which of these offers the biggest advantage at this point, a...
asked by 20.08.2015 / 15:42
1
answer

How to use mysql_result with MySQLi?

I would like to know how to use mysql_result in mysqli I'm not getting it, I was looking at the php.net site and the only thing I saw was mysqli_data_seek if anyone can help me ... Code I'd like to pass to mysql...
asked by 18.12.2015 / 01:59
2
answers

How to mount this multidimensional array via foreach

I'll only put the part where I'm having problems! The% w / w I need, needs to be in this format. Example 1: Array ( [atributos] => Array ( [atributo] => Array ( [nome] =&...
asked by 25.08.2015 / 08:04
1
answer

Sort MySQL query for the last 3 months

I want to do an ordered SQL query for the first 3 months from the current month, for example: Current month is August (08), so I order as: 10 9 8 1 12 I am using the following command: SELECT * FROM 'tb_convencao' WHERE 'lg_historico'...
asked by 25.08.2015 / 19:10
1
answer

How to generate an XML file from a form in PHP?

I've made the following form: <html> <body> <form method="post" action="cadastro.php"> Informacoes <br> Nome <input type="text" name="nome"> <br> Endereco <input type="text"...
asked by 23.11.2015 / 23:06
2
answers

mysql self-increment restarts on its own

I have the same problem described here at this link: link The guidance given here was to do this: link But I did not quite understand, could anyone explain the solution given in this second link?     
asked by 26.11.2015 / 11:07
1
answer

How to load JSON into MySQL, including JSON specific fields [closed]

Can anyone help me with a question that is killing me? First, I'm trying to load this JSON into MySQL { "business_id": "fNGIbpazjTRdXgwRY_NIXA", "full_address": "1201 Washington Ave\nCarnegie, PA 15106", "hours": { }, "...
asked by 30.07.2015 / 04:45
1
answer

Error showing time passed from multiple posts in PHP

<?php function timeAgo($time_ago){ $cur_time = time(); $time_elapsed = $cur_time - $time_ago; $seconds = $time_elapsed ; $minutes = round($time_elapsed / 60 ); $hours = round($time_elapsed / 3600); $days = round($time_elap...
asked by 25.07.2015 / 16:17
1
answer

Calculate the average between multiple dates in an array

I need to calculate an average not only between a start date and an end date, but on all dates present in an array to get an average result in days, hours, minutes, and seconds of how much X in X time such event is registered. I have already...
asked by 13.06.2015 / 05:13