Questions tagged as 'php'

2
answers

Error fetching data from bank

When I try to do a BD search for a login, it returns the following error:    Recoverable fatal error: Object of class mysqli_result could not be   converted to string in C: \ xampp \ htdocs \ TCC \ index.php on line 66 I need to pass all...
asked by 03.09.2017 / 00:15
1
answer

Value not being taken via POST

No index.php has 1 field input that sends a value by ajax , which should be read by cdb.php . index.php: <script type="text/javascript"> $(document).ready(function(){ $("#formulario").on("...
asked by 17.01.2018 / 13:29
1
answer

Receive date and time without tabs and convert to date format

I would like to have the date and time in php, like this: Example: I would like to receive this date as follows: 09092017104430 And I would like the output to look something like this: 09/09/2017 10:44:30     
asked by 09.09.2017 / 16:43
2
answers

Insert two points in the string

I have the following string : $valor = "0050"; How do I insert two points after the second house and stay this way? 00:50     
asked by 09.09.2017 / 23:18
1
answer

Update does not update bank records

In my system there is a registration page and a page with a table of the information of the registered ones. This table has an edit button that links to an equal form on the registration page. What should happen: When you click the save...
asked by 06.09.2017 / 13:36
2
answers

Display date of MySQL in date field

I have a customer registration page with a field for date of birth. I can choose a date and save it in the database. But when I go back to that client's signup screen this field ( type="date" ) is not displaying the value saved in the data...
asked by 06.09.2017 / 20:50
1
answer

Get value of data-cod element

How do I get the value of the data-cod element? $(document).ready(function() { $('.chatUsuariosLista').click(function() { $("#para").val(this.id); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2....
asked by 19.08.2017 / 17:25
1
answer

Twitter API with CURL

OBS: THE COMPLETE CODE IS HERE , but I made this adjustment to receive cookies I'm trying to read the cookie files to make the requisite requests to get the result I expect, see my code: $tokens = ['_twitter_sess', 'ct0', 'auth_to...
asked by 06.09.2017 / 12:24
1
answer

Laravel 5.3 update field JSON MySql - # 3143 - Invalid JSON path expression

Query generated by laravel: update 'informations' set 'parameters' = json_set('parameters', "$.'Campo teste'.type", 'string'), 'parameters' = json_set('parameters', "$.'Campo teste'.value", 'Novo valor') where 'parameters'->'$."Identificaçã...
asked by 24.08.2017 / 18:16
4
answers

Create a SELECT to bring the difference of two tables

You have the bisemanas table that stores 26 fixed bi-weeks and the outdoor_bisemanas table that stores the billboards reserves according to the selected bi-week. Edit : What I want is a select that displays all bi week...
asked by 24.08.2017 / 20:49