Questions tagged as 'php'

4
answers

Doubt about php date format

I want to print a current date in php, but I'm not sure what format it has, the example I should follow is this: "1985-04-12T23: 20: 50.52Z"     
asked by 22.08.2017 / 22:42
1
answer

I can not access tables "in use" on phpmyadmin

Today, when I turned on the PC and started the Xampp, I saw that there are certain tables that I use and I can not access them or repair them if I select them. And it gives an error to access them. How can I access them or repair...
asked by 23.08.2017 / 12:26
1
answer

Use of variables from a file called with Include

Again needing your help, this time I need to use some variables that are inside a file ComputerWork.php which I send to call from proyectos.php by means of a include These variables I need to place them within a array but I do...
asked by 22.08.2017 / 16:04
1
answer

Collect the data of a Foreach in PHP with JavaScript

First I generate a table with foreach in php to show the data of my students. <div class="col col-md-12"> <h2>Alumnos de 1º ESO</h2> <table class="table table-striped" id="table_alumnos"> <thead> <tr&...
asked by 23.08.2017 / 08:00
2
answers

MySQL query in php does not recognize variable sent from ajax

To pass the variable from JavaScript to php I do it with Ajax in this way: <script type="text/javascript"> function ejecutar(num_js){ $.ajax({ url: 'mi_php.php', type:'POST',...
asked by 14.07.2017 / 21:52
2
answers

Why do I echo for a single HTML tag? [closed]

I've noticed in a lot of php tutorials that they have separate html tags. For example: echo "<h1>Datos extraidos:</h1>"; echo "<b>dato</b>"; echo "<b>Otro dato"; Why do not you place them in this way?: echo "...
asked by 02.08.2017 / 02:28
1
answer

Unable to replace some html characters from a text received from a database

From the database I receive the following text: &lt;div onclick=&quot;alert('código inyectado');&quot;&gt;Texto&lt;/div&gt; [img]http://www.hobbyconsolas.com/sites/hobbyconsolas.com/public/media/image/2015/07/503196-h...
asked by 09.07.2017 / 02:59
1
answer

take a pdf of an xml that is a string

greetings I have an xml that returns a pdf but in a string string and I want to convert that string to a file <OutputFormat>PDF</OutputFormat> <OutputImage>JVBERi0xLjQKJeLjz9MKNiAwIG9iago8PC9UeXBlL1hPYmplY3QvUmVzb3Vy...
asked by 10.07.2017 / 16:12
2
answers

Problem in a user record

I turn to you again because the papers were burned ... I do not know what the problem may be. I'm with a registration system, to which I add the validation by google recaptcha. The validation works perfectly, the point is that when verifying tha...
asked by 03.07.2017 / 16:28
1
answer

Laravel count days within a period of dates

I have 2 calendars, one issue date and another expiration date, I want to know how many days are between the dates placed and save it in a variable. For example, if my issue date is 02/07/2017 and my expiration date is 12/07/2017...
asked by 02.07.2017 / 22:01