Questions tagged as 'php'

2
answers

Guide to style and good practices PHP

Many times I find hard code to read, as it is not structured or indented. In SOes we can find multiple examples of this. Searching the site for a question that addresses this issue, I found this @ A.Cedano , Convention of names in PHP , bu...
asked by 24.11.2017 / 00:34
0
answers

SSL error when posting new entry

Today I found an error when using the Zend to publish in my blog blogger. Using PHP this is the code: <?php set_time_limit(0); date_default_timezone_set('America/Argentina/Buenos_Aires'); if (isset($_POST['submit'])) { // load Zend Gdata...
asked by 23.03.2018 / 04:15
2
answers

Why do accumulatives accumulate in a cycle that must be presented separately in PHP?

I have a table that generates records with different values, for each record there will be a value called atenuante which represents a selection made with checkbox . These values are saved as a string de la forma 1-2 and...
asked by 26.04.2017 / 17:02
3
answers

Equivalence of "+=" of javascript in php?

In javascript there is this: += to go concatenating values after those that have already been added. Is there something similar in php? What I want to do is a forEach of a array that adds the elements of the array to a...
asked by 22.08.2018 / 05:38
1
answer

Notifications with PHP

Hi, guys, how do I get an alert when the https request does not find the identification in a database by using an api rest? What I am doing is looking for an ID when it is found, it shows me on a table that information also a pdf, but when it is...
asked by 08.10.2018 / 02:07
2
answers

Send POST to PHP through AJAX

I need that when I click on a button through POST I send a data to a PHP file where I make a query with that parameter that I receive to generate a graph. I have done it by means of a form, but an inconvenience arises when clicking on that butto...
asked by 21.09.2016 / 20:55
3
answers

Error with PHP when saving data in mysql [closed]

I am trying to save mysql the data that you enter in the form but the php is giving me errors like this: Parse error: syntax error, unexpected '[' in C:\wamp\www\Tarea2\index.php on line 5 Here the code: <?php if(isset($_POST['btn...
asked by 16.09.2016 / 04:51
1
answer

Is this class correct?

I'm new to PHP, an instructor did this Controller class, it's an MVC, and he put __Hospital(){} without using it, is that necessary? class Hospital{ private $cod; private $nom; private $dir; public function __Hospital()...
asked by 11.04.2018 / 20:30
2
answers

Show content through POO

I'm trying to understand how Object Oriented Programming works and as an exercise I was going to try to make a kind of video store using this concept and not SQL. The question is that I made the code below and if I did not understand wrong. I...
asked by 04.03.2018 / 22:54
4
answers

Do not send emails through my form

I make a form to send an email with the filling of my form, but it only marks me error of echo of shipment, I do not know what I am doing wrong. This is my form: </head> <body> <form name="formulario_contacto" method...
asked by 29.05.2018 / 18:35