Questions tagged as 'php'

3
answers

How to count the last records that fit a condition?

I want to count the last records when they meet that: its estado equals 1 if the usuario_id equals 5, and the test_id equals 1 The maximum number of records to count is only 3. These records I have in a table w...
asked by 29.10.2016 / 22:48
1
answer

Filter in sql table in real time with php

Good evening, my doubt is as follows. I am doing a user page for a system of fines and I have already made my connection to the database, the question is that it shows me the full user table but I would like to add to that view, the possibility...
asked by 01.11.2016 / 04:59
2
answers

How to send data in a string using ajax?

I need your help, gentlemen. You see I want to send the value of 3 variables which come from several fields of a form, except one which I pass to javascript from PHP. If you are wondering if those variables load the values, I say yes. I already...
asked by 30.10.2016 / 21:18
2
answers

change the format to display of a date field in mysql with php

How can I change the format that a date is displayed: To show the dates of a table, they are shown as follows: 2016-06-28 2016-06-29 2016-07-01 2016-07-03 And I wanted to change that sample format for one like this: 2016, 06,...
asked by 03.07.2016 / 18:27
3
answers

How can I send a JSON object to a PHP?

I want to send a JSON string from Javascript to PHP, and then in PHP do a json_decode, but one thing fails me. function request(data) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.re...
asked by 13.07.2016 / 09:08
1
answer

Subtract or add month to a [duplicate] date

I am working with Highcharts and I am showing information from my database in the following way: data: [<?php if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo "[Date.UTC("...
asked by 07.07.2016 / 16:43
2
answers

Checked radio button. php ajax

Good, I'm having a problem with this code, when opening the option to edit the form, I select the value 2 .. But there are some that have value 1 .. I leave here the code so you can see it .. function editarDestino(idDestino){ $('#form_edi...
asked by 29.06.2016 / 15:48
1
answer

Upload images png to the server [closed]

I am developing an application with html5 , css3 , jquery and php , and I have the problem that when I want to upload a png image, it does not upload it to the server. I can upload images jpg, bmp, but when the image is png it seems that it...
asked by 15.08.2017 / 20:19
1
answer

How to solve base_url () problem in my project with codeigniter?

Greetings. I'm using codeignite framework everything works well with the base_url (), the problem is that when I log in from another network device while accessing the main window does not access the drivers! or anything that uses base_url (). t...
asked by 08.08.2017 / 19:19
2
answers

Friendly URLs - PHP [closed]

It is very important to know that friendly URLs are in order to make it easier for the user to 'memorize' the links in a certain way. But, how can I change this?    www.midominio.com.mx/clientes.php?id=8 Because of this:    www.mido...
asked by 17.08.2016 / 06:05