Posts by Junior Like • 57 points
9 posts
-
-2
votes1
answer41
viewsQ: subtraction of error months in 31 days (strtotime)
I’m developing a graph using the library chart.js. It is working perfectly. It happens that today, the month of May with 31 days, the subtractions of the months happens in the wrong way. $mhoje =…
-
-1
votes1
answer48
viewsA: Perform a PHP filter search on multiple tables
It seems that you are seeking several times the same value of iddoc. Like $specialty and $city cannot be null to start the search, you can elimitar half those while inside while. Ex: if there are…
-
-2
votes1
answer47
viewsA: How do I center vertically and horizontally on css?
Welcome to the Sopt! I recommend researching some topics before posting a question, because right here there are already several answers to your question. In time, note the following complete…
-
-1
votes1
answer54
viewsA: System to read barcode by mobile in PHP, is working. but wanted to know How to use $_GET Only when the user reads
You must use isset(), where it checks whether the variable was started. Your code would look something like: <?=isset($_GET['codigo']) ? $_GET['codigo'] : '';?> Being false, does not return a…
phpanswered Junior Like 57 -
-1
votes1
answer28
viewsA: Problems sending multiple lines in a form
Hello, I believe you understand. I hope I can help you. <?php $lista = nl2br($_POST['lista']); $dados = explode("\n",$lista); foreach($dados as $linha){ echo substr($linha, 0, 5)."<br>"; }…
phpanswered Junior Like 57 -
-2
votes1
answer28
viewsQ: Foreach does not take $value
mine foreach is only returning to $key and the $value displays only Array. What could be wrong with my code? $curl_handle=curl_init(); curl_setopt($curl_handle,…
-
-1
votes1
answer84
viewsA: Phpmailer (HTTP ERROR 500)
Phpmailer needs the ssl_module in apache. You need to enable in the file httpd.conf. See also the settings on PHP.ini Try and see if you can. Information based on this reply…
-
0
votes2
answers58
viewsA: Take Data from Session with Foreach
New updates. So I can go through and take the values: foreach ($_SESSION['prefixo1'] as $key => $value) { echo "$key: $value<br>"; } But I must inform the name of session. In case I have 10…
-
-2
votes2
answers58
viewsQ: Take Data from Session with Foreach
seems simple, but I’m all night researching and testing various methods and I get nothing. So, I decided to post. I have the following item on session: ["prefixo1"]=> array(6) {…