Questions tagged as 'php'

2
answers

Remove PHP text string - substr

If the substring nomenclature is: string substr ( string $string , int $start [, int $length ] ) How do I tell him he has to pick up the start string until he finds a "." of the extension? That is: if we have "cadena.php", extract only "...
asked by 13.12.2017 / 12:21
1
answer

Fatal error: Call to a member function diff () on string in

I want to see the difference of days between the current date and the input data, but I get this error.    Fatal error: Call to a member function diff () on string in This is the code: <input type="date" class="datapicker" required="...
asked by 15.01.2018 / 15:33
1
answer

I do not upload data in input

Hello everyone I have the following problem, it turns out that by means of a script I pull the info from the database and it is displayed in each input, I leave an image. As you can see all the data is reflected less the user, I do not kno...
asked by 19.01.2018 / 14:15
2
answers

Avoid forwarding mail when reloading the page

A question would have some way of avoiding email resending (I am using the PHPMailer library) when reloading the page without using a button, since I am developing a notification system, but I have a problem that the notifications are they keep...
asked by 18.01.2018 / 15:41
3
answers

separate data from a mysql php field

I have this query in mysql that generates a print screen with a number <?php $contratos_query = tep_db_query("select * from " . TABLE_CONTRATOS . ""); $contratos = tep_db_fetch_array($contratos_query);?> The screen shows the...
asked by 18.01.2018 / 15:04
2
answers

Problem reading an XML with php

I have the following problem, when reading an xml of an invoice I am presented with a Warning with a specific invoice format. This is not happening to me with another group of invoices that I can process. Then I leave the Warning that is g...
asked by 15.01.2018 / 20:45
1
answer

The image with display none I want it not to load

I have a question, I am optimizing a website and in the mobile version I am putting smaller images and therefore I am hiding the desktop image with CSS display none. The problem of mine is that no matter how much you put a display none of the de...
asked by 19.01.2018 / 15:39
1
answer

Concatenate in PHP [duplicate]

Good morning, I'm starting PHP programming and today we have sent a simple little exercise to practice. What asks us is that the two echo are exactly the same, but in the first echo of the variable $sql if I show '2DAW' wi...
asked by 20.09.2017 / 19:01
1
answer

I can not find the error parse error [closed]

I have the following code in php: <?php include ("conex.php"); if ($_SERVER["REQUEST_METHOD"] == "POST"){ $centro = mysqli_real_escape_string($con,$_POST['centro']); $descripcion = mysqli_real_escape_string($con,$_POST['descripcion'...
asked by 29.01.2018 / 03:25
1
answer

Invalid parameter number: parameter was not defined in PDO PHP

Good day community, I have this problem when wanting to save data in my database, I am creating a SignUp, but since adding "FDia", "FMes" and "Fño" to my form and it is stored by PHP , throw me that error, and investigate other related qu...
asked by 27.01.2018 / 21:25